Skip to main content

Type Alias: LocalActivityRequest

LocalActivityRequest = NodeLocalActivityRequest | UserLocalActivityRequest

A local activity the task wants run before it can continue (parity, 11 §2.12). The worker runs attempt attempt (after waiting backoffMs when it is a retry) inside the task's budget, then runs the same task again with the outcome in localActivityResults. The runtime decides with computeRetryDelay whether a failure is final; a retryable one is requested again with the next attempt. A worker that cannot fit the wait and the attempt into the remaining budget answers with a non-retryable TIMEOUT failure of type LocalActivityBudgetExceeded instead.

A node request runs a node operation (managed workers); a user request runs a user activity the self-hosted worker implements, in its own process (gap G5). Narrow on kind before reading the kind's fields.