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

Re: [HTCondor-users] Unable to get _HOOK_PREPARE_JOB to add something to job ClassAd

Hi Greg

(sorry for the delay, a lot of things kept interfering).

On 08/02/17 15:12, Greg Thain wrote:
> The job ad changed by the hook only changes the copy on the execute
> node, and doesn't make it back to the submit side.
> It is probably easier to advertise this attribute in a machine classad
> with startd cron or STARTD_ATTRS, and then use
> on the submit side to copy that attribute into the job ad.

Works like a charm with one caveat - many time/timing related attributes
are undefined at the time the machine attributes are copied into the job
ad, e.g. JobStart is undefined but MyCurrentTime is (good).

Is there an "easy" way to record the start (MyCurrentTime may already be
good enough) as well as the stop times of a job in the job ad?

My ultimate goal would be to track the slot usage across a few exec
hosts, i.e. in principle all I would need are a few machine attributes
along with the start and stop times (or the run time).

Do you know a way to accomplish this?