perago.StagedWorkspace#
- class perago.StagedWorkspace(branch, commit)[源代码]#
Workspace staging reference returned before publication.
StagedWorkspaceis the small value object passed from a workspace staging callback to publication and cleanup callbacks. It intentionally contains only the staging branch and commit because repository context is already carried by the bound workspace runtime.- Parameters:
- branchstr
LakeFS staging branch that contains the attempted workspace changes.
- commitstr
Commit reference produced by staging the local attempt workspace.
- Attributes:
- branchstr
LakeFS staging branch that contains the attempted workspace changes.
- commitstr
Commit reference produced by staging the local attempt workspace.
- 参数:
参见
run_workspace_task_attemptRuntime flow that consumes staged workspace references.
Notes
The dataclass is frozen. Cleanup receives the same object even if publish fails or a later attempt fence rejects the attempt.
Examples
>>> StagedWorkspace(branch="perago/staging/wf/task", commit="abc123").branch 'perago/staging/wf/task'
Methods
__init__(branch, commit)Attributes
branchcommit