WorkerError

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

An error occurred during background task processing.

cause_type

Type of the underlying exception, if there is one.

detail

Additional error detail, not including the traceback if any.

error_type

Indicates whether this exception represents a transient error that may go away if the request is retried or a permanent error with the request.

traceback

Traceback of the underlying triggering exception, if tracebacks were requested and there is a cause set.

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.