Skip to content

Commit 88bf8ea

Browse files
515 - use job status, now task executions can have failed status but the job is still completed
1 parent a743f37 commit 88bf8ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/pages/automation/workflow-executions/components/workflow-execution-sheet/WorkflowExecutionSheetAccordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const WorkflowExecutionSheetAccordion = ({job, triggerExecution}: {job: Job; tri
1010
const startTime = job?.startDate?.getTime();
1111
const endTime = job?.endDate?.getTime();
1212

13-
const taskExecutionsCompleted = job?.taskExecutions?.every((taskExecution) => taskExecution.status === 'COMPLETED');
13+
const taskExecutionsCompleted = job?.status === 'COMPLETED';
1414
const triggerExecutionCompleted = !triggerExecution || triggerExecution?.status === 'COMPLETED';
1515

1616
let duration;

client/src/pages/platform/workflow-editor/components/WorkflowExecutionsTestOutput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const WorkflowExecutionsTestOutputHeader = ({
1919
const startTime = job?.startDate?.getTime();
2020
const endTime = job?.endDate?.getTime();
2121

22-
const taskExecutionsCompleted = job?.taskExecutions?.every((taskExecution) => taskExecution.status === 'COMPLETED');
22+
const taskExecutionsCompleted = job?.status === 'COMPLETED';
2323
const triggerExecutionCompleted = !triggerExecution || triggerExecution?.status === 'COMPLETED';
2424

2525
let duration = 0;

0 commit comments

Comments
 (0)