Skip to Content

State of the last attempt to hand this source to the fetcher, read from the scheduler. Null when that read was not made (it failed, or the page exceeded the…

State of the last attempt to hand this source to the fetcher, read from the scheduler. Null when that read was not made (it failed, or the page exceeded the fan-out bound) — never to mean 'nothing happened', which is an object with a null outcome. ABSENT on the operator listing, which is a deliberately DO-free cross-tenant scan

/** State of the last attempt to hand this source to the fetcher, read from the scheduler. Null when that read was not made (it failed, or the page exceeded the fan-out bound) — never to mean 'nothing happened', which is an object with a null outcome. ABSENT on the operator listing, which is a deliberately DO-free cross-tenant scan */
type PickupDispatch = {
  /** Dispatch attempts failed in a row; 0 once one is accepted */
  consecutiveFailures: number
  /** The refusal status, the transport error, the name of the blank var, or the receive hold's code — whichever the outcome implies */
  detail: string | null
  /** When the fetcher was last called, epoch ms, or null if never */
  lastAttemptAt: number | null
  /** When the next attempt is armed for, epoch ms */
  nextRunAt: number | null
  /** dispatched = accepted; busy = a run was already in progress (also fine); rejected = the fetcher answered and said no; unreachable = no answer at all; decrypt_failed = the stored password would not decrypt (PICKUP_KEK); unconfigured = a required var is blank; receive_hold = the destination mailbox's receive hold is set (detail: receiving_paused or receiving_disabled), so nothing was collected, the source keeps its schedule and resumes once the hold is cleared. Null when nothing has been dispatched yet */
  outcome: ('dispatched' | 'busy' | 'rejected' | 'unreachable' | 'decrypt_failed' | 'unconfigured' | 'receive_hold') | null
} | null

Used in

PickupSource.

On this page