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

Re: [HTCondor-users] Editing PROTECTED_JOB_ATTRS while Jobs are still IDLE?



Oliver,

There is no formal way to mark attributes as IMMUTABLE while the job is running.  

But I should point out that if the user does change the MaxJobRuntimeHours value, that change will never be forwarded to
the execute node.  So it will be effectively immutable while the job is running as far as the execute node is concerned.
Is that good enough for your purpose?

If we added IMMUTABLE_WHILE_RUNNING, what should happen if the job goes on hold or runs and is evicted
and the job goes back to IDLE state, should the attribute be editable again?

Is  MaxJobRuntimeHours something that the execute node enforces? or is it something that the Schedd enforces
via a PERIODIC_REMOVE or PERIODIC_HOLD expression?

-tj


-----Original Message-----
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Oliver Freyermuth
Sent: Thursday, August 6, 2020 8:14 AM
To: htcondor-users@xxxxxxxxxxx
Cc: Peter Wienemann <peter.wienemann@xxxxxxxxxxx>
Subject: [HTCondor-users] Editing PROTECTED_JOB_ATTRS while Jobs are still IDLE?

Dear HTCondor experts,

I'm using PROTECTED_JOB_ATTRS for some attributes such as the MaxJobRuntimeHours our users can specify (i.e. the maximum time their job is allowed to run before it can be killed, we use that to backfill draining nodes).

Unless I am mistaken, PROTECTED_JOB_ATTRS means that the attributes can not be edited anymore after the jobs are submitted (even before they are matched).
Is there a similar knob which makes the attributes "immutable" only after the jobs have been matched / entered running state,
so users can still "change their mind" while jobs are in the queue without "rm" and resubmitting them?

Ideally, I'd also love to keep the possiblity for the queue super users to edit them (as is the case for PROTECTED_JOB_ATTRS).

Cheers from Bonn,
	Oliver

-- 
Oliver Freyermuth
UniversitÃt Bonn
Physikalisches Institut, Raum 1.047
NuÃallee 12
53115 Bonn
--
Tel.: +49 228 73 2367
Fax:  +49 228 73 7869
--