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

Re: [HTCondor-users] SYSTEM_PERIODIC_HOLD does not behave :(



Are some of the values in the SYSTEM_PERIODIC_HOLD _expression_ undefined?
That could do it.
Also I am not sure you are doing the macro substitution right there.

What happens if you do 

condor_q -constraint 'SYSTEM_PERIODIC_HOLD==True'
or condor_q constraint 'HoldOverDowntime==True'

Steve Timm


From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Beyer, Christoph <christoph.beyer@xxxxxxx>
Sent: Wednesday, September 15, 2021 4:12 AM
To: htcondor-users <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] SYSTEM_PERIODIC_HOLD does not behave :(
 
Hi,

I am trying something very simple:

DownTime = 1631697900
SCHEDD_ATTRS = $(SCHEDD_ATTRS) Downtime
HoldOverDowntime = (ifThenElse(JobStatus == 1, (JobCurrentStartDate + RequestRuntime) > $(DownTime), ifThenElse(JobStatus == 2, (CurrentTime + MaxJobRetirementTime) > $(DownTime), )))
SYSTEM_PERIODIC_HOLD = $(HoldOverDowntime)


[root@bird-htc-sched12 config.d]# condor_config_val -schedd SYSTEM_PERIODIC_HOLD
(ifThenElse(JobStatus == 1, (JobCurrentStartDate + RequestRuntime) > 1631697900, ifThenElse(JobStatus == 2, (CurrentTime + MaxJobRetirementTime) > 1631697900, )))

Looks good so far but is not doing anything :(


[root@bird-htc-sched12 config.d]# condor_q -constraint 'JobCurrentStartDate + RequestRuntime > 1631697900'


-- Schedd: bird-htc-sched12.desy.de : <131.169.223.40:29540?... @ 09/15/21 11:11:36
OWNER   BATCH_NAME      SUBMITTED   DONE   RUN    IDLE  TOTAL JOB_IDS
chbeyer ID: 11513579   9/13 09:00      _      1      _      1 11513579.0
chbeyer ID: 11513580   9/15 09:52      _      1      _      1 11513580.0

I am missing something obvious here as usual ? :(

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
_______________________________________________
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://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_mailman_listinfo_htcondor-2Dusers&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=10BCTK25QMgkMYibLRbpYg&m=HcBUTsgCoLemUFx0At2bfOqkMJnsWTow1pEvdt6nEYU&s=5PMkuwKHnm7QeapKUD-hBx1qZ_a4Tgx3XcJN-2DEaws&e=

The archives can be found at:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.cs.wisc.edu_archive_htcondor-2Dusers_&d=DwICAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=10BCTK25QMgkMYibLRbpYg&m=HcBUTsgCoLemUFx0At2bfOqkMJnsWTow1pEvdt6nEYU&s=Tt-6T1fhzctqD0PGlK5Vb9mj0Ytn659WGoeC3eT2sGo&e=