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

Re: [HTCondor-users] PREEMPTION_RANK undefined variables

Hi Sam,

I'm not sure why RemoteUserPrio and TotalJobRunTime would be undefined, is this always the case for every slot that the negotiator evaluates?

FYI, there is a more compact syntax for ifThenElse(undefined(foo), bar, foo):

(foo ?: bar)

For example, the left half of your _expression_ could be:

(RemoteUserPrio ?: 0)*1000000

Finally, I doubt this solves the issue, but there are some other attributes that might be useful listed in the Priorities in Negotiation and Preemption section of the manual: https://htcondor.readthedocs.io/en/latest/admin-manual/user-priorities-negotiation.html#priorities-in-negotiation-and-preemption

Jason Patton

On 11/8/21 2:58 PM, Sam Copeland wrote:

I am trying to set the PREEMPTION_RANK in my config file but the inputs are undefined. I set in my config:


PREEMPTION_RANK = debug((ifThenElse(isUndefined(RemoteUserPrio), 0, RemoteUserPrio) * 1000000) - ifThenElse(isUndefined(TotalJobRunTime), 0, TotalJobRunTime))


In the Negotiator Log, I am getting:


11/08/21 12:39:14 Classad debug: RemoteUserPrio --> UNDEFINED

11/08/21 12:39:14 Classad debug: isUndefined(RemoteUserPrio) --> TRUE

11/08/21 12:39:14 Classad debug: ifThenElse(isUndefined(RemoteUserPrio),0,RemoteUserPrio) --> 0

11/08/21 12:39:14 Classad debug: TotalJobRunTime --> UNDEFINED

11/08/21 12:39:14 Classad debug: isUndefined(TotalJobRunTime) --> TRUE

11/08/21 12:39:14 Classad debug: ifThenElse(isUndefined(TotalJobRunTime),0,TotalJobRunTime) --> 0

11/08/21 12:39:14 Classad debug: (ifThenElse(isUndefined(RemoteUserPrio),0,RemoteUserPrio) * 1000000) - ifThenElse(isUndefined(TotalJobRunTime),0,TotalJobRunTime) --> 0


Is there a different variable I could use for RemoteUserPrio and TotalJobRuntime?


I am using version 8.8.12




This communication (both the message and any attachments or links) is confidential and only intended for the use of the person or persons to whom it is addressed unless we have expressly authorized otherwise. It also may contain information that is protected by solicitor-client privilege. If you are reading this communication and are not an addressee or authorized representative of an addressee, we hereby notify you that any distribution, copying or other use of it without our express authorization is strictly prohibited. If you have received this communication in error, please delete both the message and any attachments from your system and notify us immediately by e-mail or phone. In addition, we note that this communication and its transmission of data have not been secured by encryption. Therefore, we are not able to confirm or guarantee that the communication has not been intercepted, amended, or read by an unintended third party.

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: