Skip to content

Commit af64650

Browse files
committed
Update output in README now that there is no "CONTINUE" case
1 parent af43ea4 commit af64650

1 file changed

Lines changed: 6 additions & 39 deletions

File tree

  • message_passing/waiting_for_handlers_and_compensation

β€Žmessage_passing/waiting_for_handlers_and_compensation/README.mdβ€Ž

Lines changed: 6 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -20,53 +20,20 @@ And run the workflow-starter code in the other terminal:
2020
poetry run python starter.py
2121

2222

23-
Here's the output you'll see, along with some explanation:
23+
Here's the output you'll see:
2424

2525
```
26-
workflow exit type: success
27-
update action on premature workflow exit: continue
28-
πŸ‘‡ [Caller gets a successful update response because main workflow method waits for handlers to finish]
29-
🟒 caller received update result
30-
🟒 caller received workflow result
31-
update action on premature workflow exit: abort_with_compensation
32-
πŸ‘‡ [Same as above: the workflow is successful for action-on-premature exit is irrelevant]
26+
workflow exit type: SUCCESS
3327
🟒 caller received update result
3428
🟒 caller received workflow result
3529
3630
37-
workflow exit type: failure
38-
update action on premature workflow exit: continue
39-
πŸ‘‡ [update does not abort and main workflow method waits for handlers to finish => caller gets successful update result prior to workflow failure]
40-
🟒 caller received update result
41-
πŸ”΄ caught exception while waiting for workflow result: Workflow execution failed: deliberately failing workflow
42-
update action on premature workflow exit: abort_with_compensation
43-
πŸ‘‡ [update aborts, compensates and raises => caller gets failed update result]
44-
πŸ”΄ caught exception while waiting for update result: Workflow update failed: The update failed because the workflow run exited: deliberately failing workflow
31+
workflow exit type: FAILURE
32+
πŸ”΄ caught exception while waiting for update result: Workflow update failed: The update failed because the workflow run exited
4533
πŸ”΄ caught exception while waiting for workflow result: Workflow execution failed: deliberately failing workflow
4634
4735
48-
workflow exit type: cancellation
49-
update action on premature workflow exit: continue
50-
πŸ‘‡ [update does not abort and main workflow method waits for handlers to finish => caller gets successful update result prior to workflow cancellation]
51-
🟒 caller received update result
52-
πŸ”΄ caught exception while waiting for workflow result: Workflow execution failed: Workflow cancelled
53-
update action on premature workflow exit: abort_with_compensation
54-
πŸ‘‡ [update aborts, compensates and raises => caller gets failed update result]
55-
πŸ”΄ caught exception while waiting for update result: Workflow update failed: The update failed because the workflow run exited:
36+
workflow exit type: CANCELLATION
37+
πŸ”΄ caught exception while waiting for update result: Workflow update failed: The update failed because the workflow run exited
5638
πŸ”΄ caught exception while waiting for workflow result: Workflow execution failed: Workflow cancelled
57-
58-
59-
workflow exit type: continue_as_new
60-
update action on premature workflow exit: continue
61-
πŸ‘‡ [update does not abort and main workflow method waits for handlers to finish => caller gets successful update result prior to continue-as-new]
62-
🟒 caller received update result
63-
πŸ‘‡ [a second update is sent to the post-CAN run, which run succeeds, hence update succeeds]
64-
🟒 caller received update result
65-
🟒 caller received workflow result
66-
update action on premature workflow exit: abort_with_compensation
67-
πŸ‘‡ [update aborts, compensates and raises => caller gets failed update result]
68-
πŸ”΄ caught exception while waiting for update result: update "50cd58dc-2db7-4a70-9204-bf5922203203" not found:
69-
πŸ‘‡ [a second update is sent to the post-CAN run, which run succeeds, hence update succeeds]
70-
🟒 caller received update result
71-
🟒 caller received workflow result
7239
```

0 commit comments

Comments
Β (0)