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_snapshotCheck that a fresh snapshot still matches.
run_workspace_task_attemptCalls the attempt fence around publication.
failed_resultBuild the ordinary failed Conductor result used for this exception.
Examples
>>> StaleAttemptError("task-9b4c") StaleAttemptError('task-9b4c')