OSC / ondemand

Supercomputing. Seamlessly. Open, Interactive HPC Via the Web
https://openondemand.org/
MIT License
278 stars 104 forks source link

ActiveJobs: For queued jobs, show queue times. #123

Open brianmcmichael opened 7 years ago

brianmcmichael commented 7 years ago

For jobs that are currently in queue, activejobs should show the amount of time a job has been waiting in that state.

┆Issue is synchronized with this Asana task by Unito

nickjer commented 6 years ago

I like this idea, do you happen to know what job adapters this would work for?

ericfranz commented 6 years ago

Presumably this would be now - info#submission_time or info#dispatch_time - info#submission_time. Some adapters (https://github.com/OSC/ood_core/search?q=submission_time&unscoped_q=submission_time and https://github.com/OSC/ood_core/search?q=submission_time&unscoped_q=dispatch_time) might not support this fully or for all jobs (does it work when submitting job arrays?).

Other edge cases might include: dispatch_time is not available but submission_time is and the job is running...

Basically if you do dispatch_time.to_i and it doesn't return a reasonable value (like 0 is not reasonable).

ericfranz commented 6 years ago

This can be a row added to the table in the details section.

qianyuanzhu commented 6 years ago

Other edge cases might include: dispatch_time is not available but submission_time is and the job is running...

We only need queued time for queued jobs or for all the jobs? @ericfranz

matt257 commented 4 months ago

reviewed; still a great idea