Skip to content

Commit d949177

Browse files
committed
Do not show Finished for pending runs
1 parent b991f47 commit d949177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/pages/Runs/List/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { groupBy as _groupBy } from 'lodash';
22

33
import { getBaseUrl } from 'App/helpers';
44

5-
import { finishedJobs } from '../constants';
5+
import { finishedJobs, finishedRunStatuses } from '../constants';
66
import { getJobStatus } from '../Details/Jobs/List/helpers';
77

88
export const getGroupedRunsByProjectAndRepoID = (runs: IRun[]) => {
@@ -100,7 +100,7 @@ export const getRunListItemSchedule = (run: IRun) => {
100100
};
101101

102102
export const getRunListFinishedAt = (run: IRun) => {
103-
if (!run.latest_job_submission || !run.latest_job_submission.finished_at) {
103+
if (!run.latest_job_submission || !run.latest_job_submission.finished_at || !finishedRunStatuses.includes(run.status)) {
104104
return null;
105105
}
106106
return run.latest_job_submission.finished_at;

0 commit comments

Comments
 (0)