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

Re: [HTCondor-users] How to set a worker node offline in HTCondor

In general the mechanism that we use to avoid cancelling a drain that was not started by defrag is to look for the DrainReason attribute of the p-slot.   

Draining can be cancelled by the Defrag daemon if there is no DrainReason, or if the DrainReason is "defrag". 

There should always be a DrainReason attribute if draining was started by an 8.9.11 or later condor_drain command, or by an 8.9.11 or later DEFRAG daemon. 


From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Anderson, Stuart B. <sba@xxxxxxxxxxx>
Sent: Tuesday, April 6, 2021 6:28 PM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] How to set a worker node offline in HTCondor
I just had an 8.9.11 startd resume running jobs after condor_drain completed and StartLog recorded, "Processing cancel drain request from <>" where is an 8.9.11 CM running condor_defrag.

> On Apr 1, 2021, at 8:26 AM, Anderson, Stuart B. <sba@xxxxxxxxxxx> wrote:
> Excellent!
>> On Apr 1, 2021, at 7:16 AM, John M Knoeller <johnkn@xxxxxxxxxxx> wrote:
>> You will be glad to hear that as of  8.9.11  DEFRAG and the condor_drain command will now set a DrainReason attribute into the machine ClassAd.   DEFRAG will check this attribute and only resume running jobs on machines that it drained.

Stuart Anderson

HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at: