Commit f8d6c8f
committed
Add WorkflowIDConflictPolicy.USE_EXISTING to approval start_workflow
Followup to a898cf4. The approval handler relies on a deterministic
workflow ID so that activity retries re-attach to the existing
approval workflow rather than spamming the operator. Without an
explicit conflict policy, the default ALLOW_DUPLICATE silently allows
a new approval workflow to start once the previous one closes.
USE_EXISTING enforces the contract: if a workflow with this ID is
running, attach to it; otherwise allow a fresh one.1 parent d417831 commit f8d6c8f
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
364 | 369 | | |
365 | 370 | | |
0 commit comments