fermitools / jobsub_lite

jobsub_lite is a wrapper for HTCondor job submission
Apache License 2.0
1 stars 7 forks source link

Fix RUNTIME for running jobs #583

Closed shreyb closed 3 weeks ago

shreyb commented 3 weeks ago

Closes #501

Sometime in the last few Condor releases, the classad RemoteWallClockTime stopped being populated in a job's classad while a job was running, and that broke our jobsub_q. After consultation with the condor developers, this PR has the new implementation of calculating the job's cumulative run time.

The calculation for a running job is: (ServerTime - ShadowBday) + RemoteWallClockTime.

For an idle, completed, or held job, the classad RemoteWallClockTime still works, and that's reflected in this PR.

This PR also includes a small tweak to the jobsub_totals script to improve performance; and a few comments to make clear what Condor expression corresponds to what column.