Interface: 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
readonlyisReplaying:boolean
Whether the workflow is currently replaying.
isReplayingHistoryEvents
readonlyisReplayingHistoryEvents: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
readonlynow: () =>number
Current system time in milliseconds
new Date(), Date.now(), and Temporal.Now date/time methods use Workflow Task time, which stays constant
for the duration of the Task and during replay. Temporal's default time zone remains the system time zone.
Returns
number
random
readonlyrandom:UnsafeRandomSource
Experimental
Nondeterministic; see UnsafeRandomSource.