Skip to main content

Function: continueAsNewRetryShape()

continueAsNewRetryShape(options): "run" | "legacy" | "none" | "invalid"

The shape of CONTINUE_AS_NEW options.retry (C-SCHEMA canOptions):

  • run: the R2 run-retry policy (initialDelayMs, maxAttempts, ...), which the service applies to the new run (11 §2.17);
  • legacy: the R1 activity shape (retryDelay, maxRetries, maxDelay) that R1 bundles and histories carry. It never had a meaning: the core service ignored it, and the service must keep ignoring it rather than read it as a run-retry policy;
  • none: no retry option.

A value with keys of both shapes, or of neither, is invalid; the command schema refuses it.

Parameters​

options​

Readonly<Record<string, unknown>>

Returns​

"run" | "legacy" | "none" | "invalid"