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

Re: [HTCondor-users] Updating Job ClassAd during job run

Unfortunately I don't think any of these options will work for us as we
operate our HTCondor for the WLCG and get jobs from several different
places we cannot update the job submit file. Also, reading about option
(3) there might be some misunderstanding, we want to run a script in
the job wrapper and use the output of the script to update the job
classad, reading the documentation on SYSTEM_JOB_MACHINE_ATTRS it seems
like the value is set when the schedd initiates the start up of the job
but our script will be running after the job starts. Is there any way
to have the job classad update during or at the end of the job's run?

Thanks for the help,


On Fri, 2022-03-04 at 14:48 -0600, Todd L Miller wrote:
>  	The technique at
> https://htcondor-wiki.cs.wisc.edu/index.cgi/wiki?p=HowToInsertCustomClassAdIntoJobs
> is limited, as you have discovered, to machine ad attributes set when
> the 
> job matches the machine, so that won't work for what you want.
>  	There are two other ways you can edit the (schedd's copy of
> the) 
> ClassAd of a job running at a startd.
> (1)  You can run condor_chirp from inside the job.
> (2)  You can set job_machine_attrs in the job submit file.
> (3)  You can set SYSTEM_JOB_MACHINE_ATTRS on the submit node.
>  	The disadvantage of (2) and (3) is that the attribute that
> goes 
> into the job ClassAd is named `MachineAttr<Name>0`, and not just
> <Name>.
> - ToddM
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx
> with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/