chore(): Prevent sub workflow events release early + redis unlink (#11641)

**What**
- Prevent event release when a workflow is run as step and finish
- Use `unlink` instead of `del` when removing keys from redist to push the execution to async thread
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2025-02-27 10:33:30 +00:00
1 parent ca6a15717d
commit c250de7919
7 files changed
+26 -14

No files matched your search

@@ -93,7 +93,9 @@ function createContextualWorkflowRunner<
const { eventGroupId, parentStepIdempotencyKey } = context
attachOnFinishReleaseEvents(events, flow, { logOnError })
if (!parentStepIdempotencyKey) {
attachOnFinishReleaseEvents(events, flow, { logOnError })
}
const flowMetadata = {
eventGroupId,