fix(celery): Kill celery worker process after every task to release memory (#6761)

This commit is contained in:
Víctor Fernández Poyatos
2025-01-31 14:45:08 +01:00
committed by GitHub
parent 1256c040e9
commit 763130f253
+1 -1
View File
@@ -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() {