Skip to content

Commit 6e56128

Browse files
perf(encyclopedia): added clarification for how Updates work with delayed start Workflows (#4458)
* perf(encyclopedia): added clarification for how Updates work with delayed start Workflows * Update docs/encyclopedia/workflow/workflow-execution/timers-delays.mdx Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io> --------- Co-authored-by: Brian MacDonald <brian.macdonald@temporal.io>
1 parent f6a51de commit 6e56128

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/encyclopedia/workflow/workflow-execution/timers-delays.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Workers consume no additional resources while waiting for a Timer to fire, so a
3030
- [How to set Timers in TypeScript](/develop/typescript/workflows/timers)
3131
- [How to set Timers in .NET](/develop/dotnet/workflows/timers)
3232

33-
The duration of a Timer is fixed, and your Workflow might specify a value as short as one second or as long as several years.
34-
Although it's possible to specify an extremely precise duration, such as 36 milliseconds or 15.072 minutes, your Workflows should not rely on sub-second accuracy for Timers.
33+
The duration of a Timer is fixed, and your Workflow might specify a value as short as one second or as long as several years. Although it's possible to specify an extremely precise duration, such as 36 milliseconds or 15.072 minutes, your Workflows should not rely on sub-second accuracy for Timers.
34+
3535
We recommend that you consider the duration as a minimum time, one which will be rounded up slightly due to the latency involved with scheduling and firing the Timer.
3636
For example, setting a Timer for 11.97 seconds is guaranteed to delay execution for at least that long, but will likely be closer to 12 seconds in practice.
3737

@@ -46,8 +46,8 @@ Start Delay Workflow Execution is incompatible with both [Schedules](/schedule)
4646
Start Delay determines the amount of time to wait before initiating a Workflow Execution.
4747
This is useful if you have a Workflow you want to schedule out in the future, but only want it to execute once: in comparison to reoccurring Workflows using Schedules.
4848

49-
If the Workflow receives a Signal-With-Start or Update-With-Start during the delay, it dispatches a Workflow Task and the remaining delay is bypassed.
50-
If the Workflow receives a Signal during the delay that is not a Signal-With-Start, the Signal does not interrupt the delay, and the Workflow continues to be delayed until the delay expires or a Signal-With-Start is received.
49+
If the Workflow receives a Signal-With-Start or Update-With-Start during the delay, it dispatches a Workflow Task and the remaining delay is bypassed. If the Workflow receives a [Signal](/sending-messages#sending-signals) during the delay that is not a Signal-With-Start, the Signal does not interrupt the delay, and the Workflow continues to be delayed until the delay expires or a Signal-With-Start is received.
50+
51+
A delayed-start Workflow can be triggered with an [Update](/sending-messages#sending-updates). This is because a Workflow Task needs to be scheduled to deliver an Update to Worker. Once a Workflow Task is scheduled, the Workflow is unblocked. Delay start works by not scheduling the first Workflow Task on Workflow creation.
5152

52-
You can delay the dispatch of the initial Workflow Execution by setting this option in the Workflow Options field of your chosen SDK.
53-
This delay only applies to the initial Workflow Execution and does not affect subsequent executions, such as when the Workflow Continues-as-New.
53+
You can delay the dispatch of the initial Workflow Execution by setting this option in the Workflow Options field of your chosen SDK. This delay only applies to the initial Workflow Execution and does not affect subsequent executions, such as when the Workflow Continues-as-New.

0 commit comments

Comments
 (0)