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.
Nonemeans 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.
- 参数:
- __init__(logical_task_key, staging_branch, publish_base_head, superseded_commit, try_metadata, confirm_metadata)#
Methods
__init__(logical_task_key, staging_branch, ...)Attributes
logical_task_keystaging_branchpublish_base_headsuperseded_committry_metadataconfirm_metadata