@adonis-agora/durable-dashboard 1.0.0-rc.0 → 1.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @adonis-agora/durable-dashboard
2
2
 
3
+ ## 1.0.0-rc.1
4
+
5
+ ### Minor Changes
6
+
7
+ - [#486](https://github.com/DavideCarvalho/adonis-agora-durable/pull/486) [`ab26861`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/ab26861edb93aefad8aa949f32913b6d3681c519) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - A compensating cancel now persists a new run status, `cancelling`.
8
+
9
+ `engine.cancel(runId, { compensate: true })` marks the run `cancelling` before it returns, and returns that status. The run keeps it while the saga's compensations run, then becomes `cancelled`. While it is `cancelling`:
10
+
11
+ - A repeat `cancel()`, with or without `compensate`, returns `cancelling` and leaves the undo alone. Before, a second cancel without `compensate` marked the run `cancelled` and skipped the compensations still running.
12
+ - Crash recovery re-drives it on any instance, so an undo whose pod died is finished elsewhere.
13
+ - It keeps its singleton and concurrency slot, `waitForRun` keeps waiting, `engine.requeue()` returns it unchanged, and an `overlap: 'skip'` schedule doesn't fire over it.
14
+ - The dashboard and the API show it as its own status, with a filter chip.
15
+
16
+ A failed write of the cancel request now fails `cancel()` instead of being ignored, and leaves the run as it was.
17
+
18
+ **Breaking:** `RunStatus` has a new member, `cancelling`. Exhaustive `switch`es over `RunStatus` need a case for it. A custom `StateStore` must return `cancelling` runs from `listIncompleteRuns` and `listOrphanedRuns` (the new `RECOVERABLE_RUN_STATUSES` lists them, and the state-store conformance suite checks it), or recovery won't finish a crashed compensating cancel.
19
+
3
20
  ## 1.0.0-rc.0
4
21
 
5
22
  ### Major Changes