WorkerError#

exception safir.arq.uws.WorkerError(message, detail=None, *, add_traceback=False)#

Bases: Exception

An error occurred during background task processing.

detail#

Additional error detail, not including the traceback if any.

user#

User whose action triggered this exception, for Slack reporting.

Parameters:
  • message (str) – Human-readable error message.

  • detail (str | None, default: None) – Additional details about the error.

  • add_traceback (bool, default: False) – Whether to add a traceback of the underlying cause to the error details.

property cause_type: str | None#

Type of the exception that triggered this error, if known.

error_type: ClassVar[WorkerErrorType] = 'fatal'#

Type of error this exception represents.

property traceback: str | None#

Traceback of the underlying exception, if desired.