Commit 988cf44a authored by Assunta DeSanto's avatar Assunta DeSanto
Browse files

adding paused and discarded to progress bar

parent e56bbbdd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -35,12 +35,14 @@ export default {
        errorJobs() {
            const failed = this.summary.get("failed") || 0;
            const error = this.summary.get("error") || 0;
            return failed + error;
            const discarded = this.summary.get("discarded") || 0;
            return failed + error + discarded;
        },
        waitingJobs() {
            const queued = this.summary.get("queued") || 0;
            const waiting = this.summary.get("waiting") || 0;
            return queued + waiting;
            const paused = this.summary.get("paused") || 0;
            return queued + waiting + paused;
        },
    },
};
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
import { STATES } from "../model/states";

const NON_TERMINAL_STATES = [STATES.NEW, STATES.WAITING, STATES.QUEUED, STATES.RUNNING];
const ERROR_STATES = [STATES.ERROR, STATES.DELETED];
const ERROR_STATES = [STATES.ERROR, STATES.DISCARDED];

export class JobStateSummary extends Map {
    constructor(dsc = {}) {