conductor-worker-python/entrypoint.sh

16 lines
293 B
Bash
Executable File

#!/bin/bash
export BASE="http://conductorserver:8080/api"
echo 'Waiting for Conductor ...'
while [[ "$(curl -s -o /dev/null -L -w ''%{http_code}'' $BASE/health)" != 200 ]]; do
echo 'still waiting ...'
sleep 5
done
echo 'Starting workers...'
python3 pyrest.py &
python3 pyexec.py