Skip to content
Snippets Groups Projects
Commit 5c84073f authored by Chris Hines's avatar Chris Hines
Browse files

fixes issue 34: jobs were showing a time for completion when they were still scheduling

parent af9769f7
No related branches found
No related tags found
4 merge requests!106if stat fails, display the error instead of immediately refreshing...,!99Dev,!37Dev,!36fixes issue 34: jobs were showing a time for completion when they were still scheduling
Pipeline #8897 failed
......@@ -75,7 +75,16 @@ export class JobComponent implements OnInit, OnDestroy {
let end = this.parseDate(this.jobdata.endtime);
let remaining = end.valueOf() - Date.now().valueOf();
this.timeremaining = this.secondsToHms(remaining/1000);
}
} else {
if (this.jobdata.state == "PENDING") {
if (this.jobdata.starttime != undefined && this.jobdata.starttime != null) {
this.timeremaining = "Estimated start at "+this.jobdata.starttime;
} else {
this.timeremaining = "Job is scheduling";
}
}
}
}
secondsToHms(d: number) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment