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
Whether the workflow is currently replaying.
isReplayingHistoryEvents
• Readonly isReplayingHistoryEvents: boolean
Whether the workflow is currently replaying history events.
This is similar to isReplaying, but returns false during query handlers and update
validators, which are live read-only operations that should not be considered as replaying
history events.
When this property is true, workflow log messages are suppressed and sinks defined with callDuringReplay=false won't get processed.
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
Returns
number