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: docs/failures-and-recovery.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ The category is determined automatically when the failure is recorded:
90
90
91
91
- Activity failures use `activity` when the exception exhausts the retry policy.
92
92
- Child workflow failures use `child_workflow` when the child run terminates with a failure.
93
-
- Cancelled and terminated workflows use `cancelled` or `terminated`respectively. These categories are also assigned when failure snapshots are reconstructed from `WorkflowCancelled`, `WorkflowTerminated`, `ChildRunCancelled`, or `ChildRunTerminated` history events.
93
+
- Cancelled and terminated workflows create a dedicated `WorkflowFailure` row with `propagation_kind = cancelled` or `terminated`and `failure_category = cancelled` or `terminated` respectively. The `WorkflowCancelled` or `WorkflowTerminated` history event carries the `failure_id` and `failure_category` so failure snapshots, run detail, and history exports link directly to the failure record. Child run cancellation and termination events (`ChildRunCancelled`, `ChildRunTerminated`) also carry the child's `failure_category` when the child failure row exists.
94
94
- Terminal workflow failures and failed update handlers inspect the throwable to refine the category:
95
95
- Determinism violations (`UnsupportedWorkflowYieldException`, `StraightLineWorkflowRequiredException`) classify as `task_failure`.
0 commit comments