Skip to content

Commit 37d912e

Browse files
fix(celery): Kill celery worker process after every task to release memory (#6763)
Co-authored-by: Víctor Fernández Poyatos <[email protected]>
1 parent d3de89c commit 37d912e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ start_prod_server() {
2828

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

3434
start_worker_beat() {

0 commit comments

Comments
 (0)