[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] condor_q -xml, RUN_TIME, and State




(1) does anybody know how to get RUN_TIME out of "condor_q -xml" ?

Condor_q calculates the run time: it's not provided as a simple value. Sorry.

The calculation is:

total_wall_time = RemoteWallClockTime;  // Time from past runs, if they exist

if (job is running && the shadow birthday is > 0)
    total_wall_time += ServerTime - ShadowBDay;

the "job is running" is if the JobStatus indicates that it is running. See below. The ShadowBday is the "birth day" of the shadow.

(2) what are the values for JobStatus => State ?

1 = I (idle)
2 = R (running)
...

#define UNEXPANDED  0
#define IDLE        1
#define RUNNING     2
#define REMOVED     3
#define COMPLETED   4
#define HELD        5
#define SUBMISSION_ERR  6

-alain