You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: docs/encyclopedia/workflow/workflow-execution/timers-delays.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ Workers consume no additional resources while waiting for a Timer to fire, so a
30
30
-[How to set Timers in TypeScript](/develop/typescript/workflows/timers)
31
31
-[How to set Timers in .NET](/develop/dotnet/workflows/timers)
32
32
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
+
35
35
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.
36
36
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.
37
37
@@ -46,8 +46,8 @@ Start Delay Workflow Execution is incompatible with both [Schedules](/schedule)
46
46
Start Delay determines the amount of time to wait before initiating a Workflow Execution.
47
47
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.
48
48
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.
51
52
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