Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Condor q attributes
On Fri, Jun 13, 2014 at 3:41 PM, Joshua Holladay <jholladay@xxxxxxxxxxx> wrote:
> That doesn't work for the runtime. 'RemoteUserCpu' always returns 0.0 until the job is finished (even then it's still not the runtime).
>
RemoteWallClockTime looks like what you want, but it will also be 0.0
until the job finishes (or is held, evicted, etc). This seems to get
what you're after:
condor_q -af 'ifthenelse(JobStatus==2,currenttime-Jobcurrentstartdate+RemoteWallClockTime,RemoteWallClockTime)'
There's probably a much better way to do this, but it appears to be
functional. You'll need to format the output to get it to look like
condor_q. If you want to exclude suspension time, you'll need to
subtract CumulativeSuspensionTime from RemoteWallClockTime
> Also, what's the equivalent to condor_history as well?
I'd just use RemoteWallClockTime (or
RemoteWallClock-CumulativeSuspensionTime). See Appendix A of the
HTCondor Manual for more classad attributes that you can use:
http://research.cs.wisc.edu/htcondor/manual/v8.0/12_Appendix_A.html
Thanks,
BC
--
Ben Cotton
main: 888.292.5320
Cycle Computing
Leader in Utility HPC Software
http://www.cyclecomputing.com
twitter: @cyclecomputing