Skip to main content

Type Alias: CallDispatch

CallDispatch = { taken: true; ticketId: string; } | { held: true; ticketId: string; } | { refused: string; } | { later: true; }

Defined in: packages/orchestration/src/calls/types.ts:84

What the host's dispatch decided for one call. The host's own admission (pause, caps, concurrency, credit) stays authoritative; call groups only record what it said.

Union Members​

Type Literal​

{ taken: true; ticketId: string; }

Taken — or a duplicate delivery of the same call, which must name the same ticket.


Type Literal​

{ held: true; ticketId: string; }

Waiting for credit or capacity; the ticket id is the one the turn will run as.


Type Literal​

{ refused: string; }

Refused (paused, capped, a stopped worker…). The call settles refused, and that is not news.


Type Literal​

{ later: true; }

At capacity right now: the call stays pending and dispatchPending() / sweep() offers it again.