conductor-worker-python/docker/d4science/entrypoint.sh

15 lines
353 B
Bash
Raw Normal View History

2022-07-28 18:02:21 +02:00
#!/bin/bash
export HEALTH=${CONDUCTOR_HEALTH:-http://conductor-server:8080/health}
echo 'Waiting for Conductor at ' $HEALTH '...'
while [[ "$(curl -s -o /dev/null -L -w ''%{http_code}'' $HEALTH)" != 200 ]]; do
echo 'still waiting ...'
sleep 5
done
echo 'Starting default workers with $worker_plugins ...'
python3 PyExec.py $worker_plugins