Class DispatchRefusedError

Thrown by a provider's dispatch when the run will never be allowed to start: the platform refused it for good (the caller lacks the permission, the account forbids it), or no worker has a slot. The manager ends the run at once with the reason, unbilled, and never retries it. Any other error from dispatch is treated as a fault of the moment and retried. The message is shown to no one by the library; a host may read it from the bot:left event.

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

reason: "no_capacity" | "permission_denied"

The reason the run ends with.