TaskFailed Class
Raised when a resilient task function raises an unhandled exception.
: only error is carried. task_id is no longer
on the exception (caller has it from the run handle).
keyword error: Structured error details (matches one of TaskErrorDict or TaskExhaustedRetriesErrorDict).
paramtype error: dict[str, Any]
Constructor
TaskFailed(*, error)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
error
Required
|
|
Methods
| add_note |
Exception.add_note(note) – add a note to the exception |
| with_traceback |
Exception.with_traceback(tb) – set self.traceback to tb and return self. |
add_note
Exception.add_note(note) – add a note to the exception
add_note()
with_traceback
Exception.with_traceback(tb) – set self.traceback to tb and return self.
with_traceback()
Attributes
args
error
error: TaskErrorDict | TaskExhaustedRetriesErrorDict