FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/workflow / RunWorkflowOptions

Type Alias: RunWorkflowOptions

RunWorkflowOptions = Omit<RunWorkflowStepOptions, "workflowId"> & object

Options for runWorkflow.

Type Declaration

maxSteps?

optional maxSteps?: number

Maximum number of steps to run before throwing.

pollIntervalMs?

optional pollIntervalMs?: number

Delay when no step is claimable but the workflow is still running. Defaults to 100.

signal?

optional signal?: AbortSignal

Abort signal used to interrupt the loop.

timeoutMs?

optional timeoutMs?: number

Maximum wall-clock duration in milliseconds before throwing.