Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dockerfiles/entrypoints/build-isolated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ UV_PROJECT_ENVIRONMENT="$VENV" \
echo "Starting Celery worker on queue '$RTD_BUILDS_QUEUE' ..."
export PYTHONPATH="$SRC/worker"

CMD="$VENV/bin/celery -A worker.celery worker --loglevel=INFO --concurrency=1 --max-tasks-per-child=1 -Q ${RTD_BUILDS_QUEUE}"
CMD="$VENV/bin/celery -q -A worker.celery worker --loglevel=INFO --concurrency=1 --max-tasks-per-child=1 -Q ${RTD_BUILDS_QUEUE}"
if [ -n "${DOCKER_NO_RELOAD}" ]; then
echo "Running process with no reload"
exec $CMD
else
echo "Running process with reload"
exec nodemon --config /usr/src/builder/checkouts/nodemon.json --exec $CMD
exec nodemon --config /usr/src/builder/checkouts/nodemon.json --exec "$CMD"
fi
4 changes: 2 additions & 2 deletions dockerfiles/entrypoints/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
# Ref https://docs.celeryq.dev/en/stable/userguide/workers.html#persistent-revokes.
CELERY_STATE_DIR=/var/run/celery/
mkdir -p $CELERY_STATE_DIR
CMD="uv run python3 -m celery -A ${CELERY_APP_NAME}.worker worker -Ofair -c 1 -Q builder,celery,default,build01,build:default,build:large -l ${CELERY_LOG_LEVEL} --statedb=${CELERY_STATE_DIR}worker.state"
CMD="uv run python3 -m celery -q -A ${CELERY_APP_NAME}.worker worker -Ofair -c 1 -Q builder,celery,default,build01,build:default,build:large -l ${CELERY_LOG_LEVEL} --statedb=${CELERY_STATE_DIR}worker.state"

if [ -n "${DOCKER_NO_RELOAD}" ]; then
echo "Running process with no reload"
$CMD
else
echo "Running process with reload"
nodemon --config ../nodemon.json --exec $CMD
nodemon --config ../nodemon.json --exec "$CMD"
fi
4 changes: 2 additions & 2 deletions dockerfiles/entrypoints/celery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ if [ "$SEARCH" != "" ]; then
../../docker/wait-for-it.sh search:9200 --timeout=180 --strict
fi

CMD="uv run python3 -m celery -A ${CELERY_APP_NAME}.worker worker -Ofair -c 2 -Q web,web01,reindex,autoscaling -l ${CELERY_LOG_LEVEL}"
CMD="uv run python3 -m celery -q -A ${CELERY_APP_NAME}.worker worker -Ofair -c 2 -Q web,web01,reindex,autoscaling -l ${CELERY_LOG_LEVEL}"

if [ -n "${DOCKER_NO_RELOAD}" ]; then
echo "Running process with no reload"
$CMD
else
echo "Running process with reload"
nodemon --config ../nodemon.json --exec $CMD
nodemon --config ../nodemon.json --exec "$CMD"
fi