feat: workflows release events (#7664)

* feat: Release grouped events once a worfklow finish

* update common step

* update types

* tests

* optionality

* fies

* cancel flow on release failure

* clear events on fail

* more tests

* log errors

* log more errors

* update missing interface method declaration

* fix missing return

* update mock

* fix tests
This commit is contained in:
Adrien de Peretti
2024-06-11 15:48:15 +02:00
committed by GitHub
parent bef5941714
commit dd0b9f0805
6 changed files with 216 additions and 16 deletions
@@ -39,7 +39,7 @@ export class LocalWorkflow {
protected handlers: Map<string, StepHandler>
protected medusaContext?: Context
get container() {
get container(): MedusaContainer {
return this.container_
}