File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ while true; do
3030
3131 # get the current ensembles
3232 num_ensembles=$( python3 /tools/ensemble_count.py)
33+ echo " ${num_ensembles} ensembles in the queue"
3334
3435 # get the current jobs
3536 num_jobs=$( kubectl get jobs -n " ${namespace} " | wc -l)
37+ echo " ${num_jobs} jobs are running"
3638
3739 # provision more jobs
3840 if [ " ${num_ensembles} " -gt " ${num_jobs} " ]; then
@@ -50,6 +52,7 @@ while true; do
5052 fi
5153
5254 idx=0
55+ echo " Starting ${new_jobs} jobs"
5356 while [ $idx -lt ${new_jobs} ]; do
5457 if [ -e /tmp/joshua-agent.yaml ]; then
5558 rm -f /tmp/joshua-agent.yaml
@@ -68,9 +71,11 @@ while true; do
6871 fi
6972 done
7073 # /tmp/joshua-agent.yaml contains up to $batch_size entries
74+ echo " Starting a batch of ${i} jobs"
7175 kubectl apply -f /tmp/joshua-agent.yaml -n " ${namespace} "
7276 done
7377 fi
78+ echo " ${new_jobs} jobs started"
7479
7580 # check every check_delay seconds
7681 sleep " ${check_delay} "
You can’t perform that action at this time.
0 commit comments