File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,16 +38,31 @@ jobs:
3838 # Diagnostic step to ensure dummy_job.sub and payload.sh are present
3939 docker exec condor-local ls -la /job
4040
41+ - name : Wait for HTCondor Daemons to be Ready
42+ run : |
43+ echo "Waiting for the HTCondor schedd daemon to boot up..."
44+ # Try up to 30 times with a 1-second interval
45+ for i in {1..30}; do
46+ if docker exec -u test_user condor-local condor_status -schedd > /dev/null 2>&1; then
47+ echo "HTCondor is ready!"
48+ exit 0
49+ fi
50+ echo "Still waiting... ($i/30)"
51+ sleep 1
52+ done
53+ echo "Error: HTCondor daemons failed to start within 30 seconds."
54+ exit 1
55+
4156 - name : Submit Dummy Job
4257 run : |
4358 # Cluster number will always be 1, as we use a fresh container
44- echo "Before submitting this job, sleep for 10 seconds" && sleep 10
4559 docker exec -u test_user condor-local condor_submit dummy_job.sub
4660
4761 - name : Wait for Job Completion
4862 run : |
63+ # -table is an option for CI workflows that do not have an TTY attached
4964 echo "Monitoring Cluster ID: 1"
50- docker exec -u test_user condor-local condor_watch_q -exit all,done -clusters 1
65+ docker exec -u test_user condor-local condor_watch_q -table - exit all,done -clusters 1
5166
5267 - name : Verify Job Output Logs
5368 run : |
You can’t perform that action at this time.
0 commit comments