Skip to main content

ProcessOutcome

@forge/monorepo


@forge/monorepo / backend/src / ProcessOutcome

Type Alias: ProcessOutcome

ProcessOutcome = "completed" | "failed" | "cancelled" | "skipped" | "lost" | "paused" | "deferred"

Defined in: backend/src/runtime/worker.ts:157

deferred is distinct from skipped, and conflating them would strand work — #265.

skipped means somebody else has this, or it is already finished — there is nothing to do and the job is done with. deferred means this tenant is at its concurrency limit right now: the run is still queued, it still needs to run, and a caller that acknowledged it the way it acknowledges a skipped job would drop it for ever. A deferred result must be re-enqueued, and ProcessResult.retryAfterMs says when.