Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] condor_q -xml, RUN_TIME, and State
- Date: Mon, 9 Jan 2006 12:07:36 -0600
- From: Jaime Frey <jfrey@xxxxxxxxxxx>
- Subject: Re: [Condor-users] condor_q -xml, RUN_TIME, and State
On Jan 4, 2006, at 9:50 PM, Mitch Murphy wrote:
(1) does anybody know how to get RUN_TIME out of "condor_q -xml" ?
ie.
RUN_TIME 0+03:52:14
=?
<a n="ShadowBday"><i>1136417998</i></a>
<a n="JobStartDate"><i>1136417998</i></a>
<a n="JobCurrentStartDate"><i>1136417998</i></a>
<a n="RemoteSysCpu"><r>1.131000000000000E+03</r></a>
<a n="RemoteUserCpu"><r>1.136200000000000E+04</r></a>
<a n="ServerTime"><i>1136431743</i></a>
Here is some pseudo-code for how the runtime is computed by condor_q:
RemoteWallClockTime + ((JobStatus == 2 && ShadowBday =!=
Undefined) ? (ServerTime - ShadowBday) : 0)
(Note that ClassAds don't have a ?: operator.)
(2) what are the values for JobStatus => State ?
1 = I (idle)
2 = R (running)
...
It's in the manual:
http://www.cs.wisc.edu/condor/manual/v6.7/2_5Submitting_Job.html#2115
+--------------------------------+-----------------------------------+
| Jaime Frey | I used to be a heavy gambler. |
| jfrey@xxxxxxxxxxx | But now I just make mental bets. |
| http://www.cs.wisc.edu/~jfrey/ | That's how I lost my mind. |
+--------------------------------+-----------------------------------+