Hi,
PERIODIC_REMOVE is mainly acting on the base of the job classadd as far as I know and the most condorish way to solve your issue would probably be to let startd run your script and echo the output to stdout e.g. echo "remove_me = true" this would almost automatically put that value into the job_classadd and you could work with it in diefferent ways .
The PERIODIC_REMOVE could then remove jobs based on the value of that part of the job classadd ...
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: "Jose Caballero" <jcaballero.hep@xxxxxxxxx>
An: "HTCondor-Users Mail List" <htcondor-users@xxxxxxxxxxx>
Gesendet: Samstag, 1. Juli 2023 11:27:02
Betreff: [HTCondor-users] periodic_remove based on the output of script?
Hi,
I guess this is a very weird question, but with HTCondor you never know. It may be one of the thousands of knobs in page 517 :)
Is it possible to somehow hook PERIODIC_REMOVE with an external script, and set its value to True/False based on the output of that script?
If not possible, an alternative could be that this external scripts runs in parallel, eventually creates a flag file, and PERIODIC_REMOVE reacts to the presence of that file. Would that be doable?
Thanks a lot in advance.
Cheers,
Jose
_______________________________________________
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/