Skip to content

Commit

Permalink
fix(core): Assign properties.success earlier to set executionStatus c…
Browse files Browse the repository at this point in the history
…orrectly
  • Loading branch information
flipswitchingmonkey authored and netroy committed Mar 24, 2023
1 parent 1663319 commit 6c7772a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/InternalHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ export class InternalHooks implements IInternalHooksClass {
properties.user_id = userId;
}

properties.success = !!runData?.finished;

let executionStatus: ExecutionStatus;
if (runData?.status === 'crashed') {
executionStatus = 'crashed';
Expand All @@ -295,7 +297,6 @@ export class InternalHooks implements IInternalHooksClass {

if (runData !== undefined) {
properties.execution_mode = runData.mode;
properties.success = !!runData.finished;
properties.is_manual = runData.mode === 'manual';

let nodeGraphResult: INodesGraphResult | null = null;
Expand Down

0 comments on commit 6c7772a

Please sign in to comment.