Skip to content

Commit

Permalink
Ensure WORKER_COMMAND is defined in worker mode
Browse files Browse the repository at this point in the history
  • Loading branch information
smortexa committed Dec 29, 2024
1 parent 134128a commit 71b61d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deployment/start-container
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ elif [ "${container_mode}" = "scheduler" ]; then
initialStuff
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.scheduler.conf
elif [ "${container_mode}" = "worker" ]; then
if [ -z "${WORKER_COMMAND}" ]; then
echo "WORKER_COMMAND is undefined."
exit 1
fi
initialStuff
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.worker.conf
else
Expand Down

0 comments on commit 71b61d1

Please sign in to comment.