Skip to content

Commit

Permalink
fix(celery): Kill celery worker process after every task to release m…
Browse files Browse the repository at this point in the history
…emory (#6761)
  • Loading branch information
vicferpoy authored Jan 31, 2025
1 parent 1256c04 commit 763130f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ start_prod_server() {

start_worker() {
echo "Starting the worker..."
poetry run python -m celery -A config.celery worker -l "${DJANGO_LOGGING_LEVEL:-info}" -Q celery,scans -E
poetry run python -m celery -A config.celery worker -l "${DJANGO_LOGGING_LEVEL:-info}" -Q celery,scans -E --max-tasks-per-child 1
}

start_worker_beat() {
Expand Down

0 comments on commit 763130f

Please sign in to comment.