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

Re: [HTCondor-users] Question about the conditionals in configuration



Hi,

you can do string comparison, check the classadd language here:

https://htcondor.readthedocs.io/en/stable/misc-concepts/classad-mechanism.html?highlight=strcmp#classad-syntax

strcmp() is probably what you are looking for.

When it comes to slot definitions though you will need to restart condor to make it happen, hence if you want to reorganise your slots depending on the owner of the job it's not gonna be very straight forward (but that is just a wild guess of course)

Best
christoph


--
Christoph Beyer
DESY Hamburg
IT-Department

Notkestr. 85
Building 02b, Room 009
22607 Hamburg

phone:+49-(0)40-8998-2317
mail: christoph.beyer@xxxxxxx


Von: jiangxw@xxxxxxxxxx
An: "htcondor-users" <htcondor-users@xxxxxxxxxxx>
Gesendet: Donnerstag, 7. Mai 2020 08:56:22
Betreff: [HTCondor-users] Question about the conditionals in configuration

Dear all,

Does the conditional in configuration support string comparison?

As the htcondor manual, it seems only support bool or simple number. 

Can we do this conditional in HTCondor configuration?

group = "cms"
if group == "cms"
  num_slots = 4

Thanks in advance!
Cheers,
Xiaowei

jiangxw@xxxxxxxxxx

_______________________________________________
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/