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

Re: [HTCondor-users] Job status of jobs when using USER_JOB_WRAPPER



On 04/13/2017 03:20 PM, Weiming Shi wrote:

that this JobStatus is not designed to match the STAT field (i.e.,
PROCESS STATE CODE) that could be collected by the 'ps aux' query on
the condor execute node where a job is executed.

Your understanding is correct. A couple of things complicate this -- an HTCondor job can consist of many Unix processes, so which process status would you want to display? Also, the process status in ps can check very frequently, from "R"unning to "I"dle to "D"isk wait, etc.

If you really want to get this data back to the submit side, your job could spawn a script that periodically looks in /proc to figure of the processes state of one of the processes in your job, then uses condor_chirp to update a custom job attribute in the job classad in the schedd.

Stepping back a bit, what do you want to do with this information?

-greg