Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] debug condor_starter
- Date: Wed, 7 May 2025 15:30:42 +0200 (CEST)
- From: "Beyer, Christoph" <christoph.beyer@xxxxxxx>
- Subject: Re: [HTCondor-users] debug condor_starter
Hi Antonio,
if you want to use the custom attribute in the start expression you must declare it being a startd_attribute - I think, try:
STARTD_ATTRS = $(STARTD_ATTRS), CustomStatus
Also you might want it to set static in the config as there might pe a short period at the start of the machine were condor_cron has not run yet but condor is already running, put
CustomStatus = "foo"
Or as an alternative solution to that problem configure a one-shot-cron-run right after condor start, I don't have the syntax for that in my head but you will find the solution in the manual ;)
Last thing I think I am spotting is you need to put:
STARTD_CRON_myjob_MODE = Periodic
Also the startd logfile should give you some insight about the run status of your cron job ...
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
----- UrsprÃngliche Mail -----
Von: "Antonio Falabella via HTCondor-users" <htcondor-users@xxxxxxxxxxx>
An: "HTCondor-Users Mail List" <htcondor-users@xxxxxxxxxxx>
CC: "Antonio Falabella" <antonio.falabella@xxxxxxx>
Gesendet: Mittwoch, 7. Mai 2025 15:12:32
Betreff: [HTCondor-users] debug condor_starter
Hi,
I am trying to add a custom cron hook, but I keep receiving this error
in Started log
05/07/25 15:06:52 (pid:1787894) argc = 1
05/07/25 15:06:52 (pid:1787894) argv[0] = condor_starter
05/07/25 15:06:52 (pid:1787894) usage: condor_starter initiating_host
05/07/25 15:06:52 (pid:1787894)ÂÂÂ or: condor_starter -job-keyword keyword
05/07/25 15:06:52 (pid:1787894) -job-input-ad path
05/07/25 15:06:52 (pid:1787894)ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ -job-cluster number
05/07/25 15:06:52 (pid:1787894)ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ -job-proc number
05/07/25 15:06:52 (pid:1787894)ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ -job-subproc number
05/07/25 15:06:52 (pid:1787894) **** condor_starter (condor_STARTER) pid
1787894 EXITING WITH STATUS 1
The custom part of the conf is
cat config.d/30_startd.config
# startd conf
MODULES = /etc/condor/modules
STARTD_CRON_JOBLIST = $(STARTD_CRON_JOBLIST) myjob
STARTD_CRON_myjob_PERIOD = 60s
STARTD_CRON_myjob_EXECUTABLE = $(MODULES)/customClassAd
STARTD_CRON_myjob_RECONFIG=true
I added to the main conf this line
START = ($(START)) &&Â CustomStatus=="Idle"
and the customClassAd script is just
#!/bin/bash
echo "CustomStatus=Idle"
Could you help me to debug this?
Thanks
Antonio
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
Join us in June at Throughput Computing 25: https://osg-htc.org/htc25
The archives can be found at: https://www-auth.cs.wisc.edu/lists/htcondor-users/