We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c10ed78 commit 977e941Copy full SHA for 977e941
1 file changed
ghost/core/core/server/services/automations/poll.ts
@@ -68,13 +68,13 @@ const processStep = async ({
68
}: Readonly<PollOptions & {
69
step: AutomationStepToRun;
70
}>): Promise<void> => {
71
- if (step.step_attempts > MAX_ATTEMPTS) {
72
- await markMaxAttemptsExceeded(automationsApi, step);
+ if (step.automation_status !== 'active') {
+ await automationsApi.markStepTerminal(step, 'automation disabled');
73
return;
74
}
75
76
- if (step.automation_status !== 'active') {
77
- await automationsApi.markStepTerminal(step, 'automation disabled');
+ if (step.step_attempts > MAX_ATTEMPTS) {
+ await markMaxAttemptsExceeded(automationsApi, step);
78
79
80
0 commit comments