Skip to content

Commit

Permalink
Merge pull request #2 from DistributedCollective/SkySonR-patch-1
Browse files Browse the repository at this point in the history
Sky son r patch 1
  • Loading branch information
gofman8 authored Nov 17, 2023
2 parents a9fd8b0 + 7967a13 commit b148a7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/web/celery/worker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ python manage.py check_chainid_matches
export C_FORCE_ROOT=true

echo "==> $(date +%H:%M:%S) ==> Running Celery worker with a max_memory_per_child of ${MAX_MEMORY_PER_CHILD} <=="
# https://github.com/sumitasok/celery/issues/5#issuecomment-781717855
exec celery -C -A config.celery_app worker \
--loglevel $log_level --pool=gevent \
-E \
--concurrency=${TASK_CONCURRENCY} \
--max-memory-per-child=${MAX_MEMORY_PER_CHILD} \
--max-tasks-per-child=${MAX_TASKS_PER_CHILD} \
Expand Down

0 comments on commit b148a7a

Please sign in to comment.