Skip to main content

Interface: UnsafeWorkflowInfo

workflow.UnsafeWorkflowInfo

Unsafe information about the current Workflow Execution.

Never rely on this information in Workflow logic as it will cause non-deterministic behavior.

Properties

isReplaying

Readonly isReplaying: boolean


now

Readonly now: () => number

Current system time in milliseconds

The safe version of time is new Date() and Date.now(), which are set on the first invocation of a Workflow Task and stay constant for the duration of the Task and during replay.

Type declaration

▸ (): number

Current system time in milliseconds

The safe version of time is new Date() and Date.now(), which are set on the first invocation of a Workflow Task and stay constant for the duration of the Task and during replay.

Returns

number