LifecycleEventMap
LifecycleEventMap =
object
Defined in: src/core/types.ts:313
Properties
Section titled “Properties”request
Section titled “request”request:
object
Defined in: src/core/types.ts:314
ticketId
Section titled “ticketId”ticketId:
string
url:
string
method
Section titled “method”method:
string
partition
Section titled “partition”partition:
string
retry:
object
Defined in: src/core/types.ts:318
Zero-based retry index (0 = first retry after the initial attempt). Note: retryWhen’s attempt parameter uses a different numbering — 0 = first attempt, 1 = first retry, etc.
ticketId
Section titled “ticketId”ticketId:
string
url:
string
partition
Section titled “partition”partition:
string
attempt
Section titled “attempt”attempt:
number
delayMs
Section titled “delayMs”delayMs:
number
How long the retry waits before it is sent: its backoff, or the
longer of that and what is left of a Retry-After pause on the
partition (see pauseOnRetryAfter). A rate-limit token wait is
not included.
error:
AppError
success
Section titled “success”success:
object
Defined in: src/core/types.ts:330
ticketId
Section titled “ticketId”ticketId:
string
url:
string
partition
Section titled “partition”partition:
string
attempts
Section titled “attempts”attempts:
number
durationMs
Section titled “durationMs”durationMs:
number
queuedMs
Section titled “queuedMs”queuedMs:
number
statusCode
Section titled “statusCode”statusCode:
number
failure
Section titled “failure”failure:
object
Defined in: src/core/types.ts:339
ticketId
Section titled “ticketId”ticketId:
string
url:
string
partition
Section titled “partition”partition:
string|undefined
undefined only when the URL couldn’t be resolved, so no partition
was ever chosen (no request event is emitted in that case either).
attempts
Section titled “attempts”attempts:
number
durationMs
Section titled “durationMs”durationMs:
number
queuedMs
Section titled “queuedMs”queuedMs:
number
error:
AppError
cancelled
Section titled “cancelled”cancelled:
object
Defined in: src/core/types.ts:350
ticketId
Section titled “ticketId”ticketId:
string
url:
string
partition
Section titled “partition”partition:
string|undefined
undefined only when the request was cancelled before its URL could
be resolved (a pre-aborted signal with an unresolvable URL).
attempts
Section titled “attempts”attempts:
number
durationMs
Section titled “durationMs”durationMs:
number
queuedMs
Section titled “queuedMs”queuedMs:
number
retryBudgetExhausted
Section titled “retryBudgetExhausted”retryBudgetExhausted:
object
Defined in: src/core/types.ts:362
A retry was refused because the partition’s retry budget is spent;
the ticket’s failure event (with its last error) follows.
ticketId
Section titled “ticketId”ticketId:
string
url:
string
partition
Section titled “partition”partition:
string
circuitOpen
Section titled “circuitOpen”circuitOpen:
object
Defined in: src/core/types.ts:363
partition
Section titled “partition”partition:
string
circuitClose
Section titled “circuitClose”circuitClose:
object
Defined in: src/core/types.ts:364
partition
Section titled “partition”partition:
string
