perago.StagedWorkspace#

class perago.StagedWorkspace(repository, branch, commit)[源代码]#

Workspace staging reference returned before publication.

StagedWorkspace is the complete LakeFS staging reference passed from a workspace staging callback to publication and cleanup callbacks. It carries repository, staging branch, and staging commit so cleanup can be driven by the staged reference itself instead of worker-local mutable state.

Parameters:
repositorystr

LakeFS repository that owns the staging branch.

branchstr

LakeFS staging branch that contains the attempted workspace changes.

commitstr

Commit reference produced by staging the local attempt workspace.

Attributes:
repositorystr

LakeFS repository that owns the staging branch.

branchstr

LakeFS staging branch that contains the attempted workspace changes.

commitstr

Commit reference produced by staging the local attempt workspace.

参数:

参见

run_workspace_task_attempt

Runtime 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(repository="songs", branch="perago/staging/wf/task", commit="abc123").branch
'perago/staging/wf/task'
__init__(repository, branch, commit)#
参数:
返回类型:

None

Methods

__init__(repository, branch, commit)

Attributes

repository

branch

commit