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

[HTCondor-users] SCHEDD CRON not updating classAD dynamically like STARTD CRON



Hello Experts,

Put together this configuration to add classad into schedd dynamically. it doesn't work as expected, similar kinda configuration works absolutely fine for STARTD CRONs without condor_reconfig.

SCHEDD_CRON_AUTOPUBLISH = always
SCHEDD_CRON_CONFIG_VAL = $(RELEASE_DIR)/bin/condor_config_val
SCHEDD_CRON_INSTANCETYPE_RECONFIG = true
SCHEDD_CRON_INSTANCETYPE_RECONFIG_RERUN = true
SCHEDD_CRON_JOBLIST = INSTANCETYPE
SCHEDD_CRON_INSTANCETYPE_EXECUTABLE = /var/tmp/test.sh
SCHEDD_CRON_INSTANCETYPE_PERIOD = 10s

Verified that the script is getting called every 10s by creating a file in /tmp filesystem.Â

#!/bin/bash
# Executed by Condor to periodically set custom class ad attributes

exec 2>/dev/null
epoch_date=$(date +%s)
touch /tmp/testfile_${epoch_date}
instancetype="c5-${epoch_date}"
echo "instancetype = ${instancetype}"

Upon condor_reconfig it's reflecting the change.Â

# condor_status test.example.com -schedd Â-l | grep -i instance
instancetype = c5 - 1635254575

Is this expected behavior?Â

Thanks & Regards,
Vikrant Aggarwal