Limit worker lifespan - RAM useage mitigation (#644)

Limit worker lifespan to save our precious RAM as discussed on [Discord](

Mitigates #500 though RAM usage can still ramp rather high before worker is culled
This commit is contained in:
PhuriousGeorge 2024-01-14 20:12:44 -06:00 committed by GitHub
parent 4078eb307f
commit 49659322a1
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ python ta_migpath
# start all tasks
nginx &
celery -A home.tasks worker --loglevel=INFO &
celery -A home.tasks worker --loglevel=INFO --max-tasks-per-child 10 &
celery -A home beat --loglevel=INFO \
-s "${BEAT_SCHEDULE_PATH:-${cachedir}/celerybeat-schedule}" &
uwsgi --ini uwsgi.ini