perago.StaleAttemptError#

exception perago.StaleAttemptError[源代码]#

Raised when a Conductor task snapshot no longer matches the attempt.

Stale attempt errors come from the attempt fence. They prevent a worker from staging or publishing workspace changes after Conductor has moved the task out of the same in-progress workflow, task id, or retry count.

参见

assert_current_attempt_snapshot

Check that a fresh snapshot still matches.

run_workspace_task_attempt

Calls the attempt fence around publication.

failed_result

Build the ordinary failed Conductor result used for this exception.

Examples

>>> StaleAttemptError("task-9b4c")
StaleAttemptError('task-9b4c')