perago.WorkspacePublicationPlan#

class perago.WorkspacePublicationPlan(logical_task_key, staging_branch, publish_base_head, superseded_commit, try_metadata, confirm_metadata)[源代码]#

Capture the metadata and fence decisions for one workspace publish.

Parameters:
logical_task_keystr

Stable workflow-scoped identity used by publish fences to decide whether branch advancement still belongs to the same logical task.

staging_branchstr

Internal LakeFS branch name that holds the staged attempt output before the publish step merges it into the target branch.

publish_base_headstr

Commit that the publish step expects to be the head of the target branch when the merge is attempted.

superseded_commitstr | None

Previous head commit superseded by the same logical task. None means the target branch has not advanced beyond the original input ref.

try_metadatadict[str, str]

Metadata written onto the staging branch commit during the try phase.

confirm_metadatadict[str, str]

Metadata written onto the publish merge commit during the confirm phase.

参数:
  • logical_task_key (str)

  • staging_branch (str)

  • publish_base_head (str)

  • superseded_commit (str | None)

  • try_metadata (dict[str, str])

  • confirm_metadata (dict[str, str])

__init__(logical_task_key, staging_branch, publish_base_head, superseded_commit, try_metadata, confirm_metadata)#
参数:
  • logical_task_key (str)

  • staging_branch (str)

  • publish_base_head (str)

  • superseded_commit (str | None)

  • try_metadata (dict[str, str])

  • confirm_metadata (dict[str, str])

返回类型:

None

Methods

__init__(logical_task_key, staging_branch, ...)

Attributes

logical_task_key

staging_branch

publish_base_head

superseded_commit

try_metadata

confirm_metadata