ControllerTimeoutError

exception controller.exceptions.ControllerTimeoutError(operation, user=None, *, started_at, failed_at)

Bases: SlackException

Wraps TimeoutError with additional context and Slack support.

Parameters:
  • operation (str) – Operation that timed out.

  • user (str | None, default: None) – User associated with operation, if any.

  • started_at (datetime) – Start time of the operation.

  • failed_at (datetime) – Time at which the operation timed out.

to_slack()

Format the exception as a Slack message.

Returns:

Slack message suitable for posting with SlackWebhookClient.

Return type:

safir.slack.blockkit.SlackMessage