fix: early exit upon failed actions

This commit is contained in:
Ali BARIN
2023-05-25 14:04:09 +00:00
parent 663a1ed9d4
commit 93a2e2151e

View File

@@ -26,6 +26,8 @@ export const worker = new Worker(
const { stepId, flowId, executionId, computedParameters, executionStep } =
await processAction(job.data as JobData);
if (executionStep.isFailed) return;
const step = await Step.query().findById(stepId).throwIfNotFound();
const nextStep = await step.getNextStep();