WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 584925a

Browse files
committed
feat: flow option defaults
1 parent 7d4e84f commit 584925a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,21 @@ function buildFlowJobStack(opts: {
7070
name: `${opts.flowName}_${firstStep.name}`,
7171
queueName: `${opts.flowName}_${firstStep.name}`,
7272
data: opts.rootInputPayload,
73-
opts: opts.flowOpts,
73+
opts: {
74+
failParentOnFailure: true,
75+
...opts.flowOpts,
76+
},
7477
}
7578

7679
for (const step of opts.steps.slice(1)) {
7780
currentStep = {
7881
name: `${opts.flowName}_${step.name}`,
7982
queueName: `${opts.flowName}_${step.name}`,
8083
children: [currentStep],
81-
opts: opts.flowOpts,
84+
opts: {
85+
failParentOnFailure: true,
86+
...opts.flowOpts,
87+
},
8288
}
8389
}
8490

0 commit comments

Comments
 (0)