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
Copy file name to clipboardExpand all lines: daprdocs/content/en/developing-applications/building-blocks/workflow/workflow-features-concepts.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ Learn more in [the workflow API reference guide]({{% ref workflow_api.md %}}).
213
213
214
214
Workflows can run for very long periods of time, and during that time we want to still be able to introduce changes to the workflow code. When the changes are non-deterministic, we need to use a versioning scheme to version the workflow code so existing workflows can continue running in the old version of the code while new workflows run in the new version of the code.
215
215
216
-
Workflows can be versioned in two different ways, each of them with their own advantages and disadvantages. These are:
216
+
Workflows can be versioned in two different ways, each of them with their own advantages. These are:
**Note**: The boolean argument to `AddVersionedOrchestrator` indicates whether the workflow the latest version.
257
+
**Note**: The boolean argument to `AddVersionedOrchestratorN` indicates whether the workflow is the latest version.
254
258
255
259
{{% /tab %}}
256
260
@@ -264,7 +268,7 @@ When the SDK receives a request to run a workflow in a version that is not regis
264
268
265
269
### Patching
266
270
267
-
This is a narrower way of versioning workflows, as it allows introducing non-deterministic changes to the workflow code without duplicating the whole workflow code.
271
+
This versioning approach allows you to introduce deterministic changes to a specific part of an existing workflow, rather than creating an entirely new version of the whole workflow. The patching mechanism ensures these targeted changes remain deterministic, whereas without this approach, making such modifications within the workflow code would result in non-determinism. This is especially useful when you want to update or improve just one section of a workflow without duplicating all of its logic.
268
272
269
273
270
274
{{< tabpane text=true >}}
@@ -298,7 +302,7 @@ The list of patches that are applied to a workflow are stored in the workflow's
298
302
299
303
There are multiple reasons for workflows to get stalled when using this versioning scheme:
300
304
- Removing (or renaming) a patch check.
301
-
- Changing the order of patch checks. It's important to keep the same order of checks throughout the workflow code.
305
+
- Changing the order of patch checks. It's required to keep the same order of checks throughout the workflow code.
0 commit comments