Skip to content

Commit

Permalink
Bugfix on start script to ensure we do not run worker or processor in…
Browse files Browse the repository at this point in the history
… server role.
  • Loading branch information
Martin Peck committed Nov 20, 2024
1 parent 61278b0 commit 6f7297b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions start_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ if [ "$ROLE" != "worker" ]; then
# Start the HTTP server process in the background if not a worker
uvicorn main:app --host 0.0.0.0 --port ${PRESTO_PORT} --reload

fi

if [ "$ROLE" == "worker" ]; then
# Start worker processes
else
# Start worker processes in background
NUM_WORKERS=${NUM_WORKERS:-1} # Default to 1 worker if not specified

for i in $(seq 1 $NUM_WORKERS)
Expand Down

0 comments on commit 6f7297b

Please sign in to comment.