From 134093b18eaefd58b0f81091810f8ac40a4ddc9a Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 27 Sep 2025 15:32:29 -0500 Subject: [PATCH] Enhancement: Add 'nice -n 5' to celery commands in configuration files for better process priority management --- docker/docker-compose.yml | 2 +- docker/uwsgi.debug.ini | 4 ++-- docker/uwsgi.dev.ini | 4 ++-- docker/uwsgi.ini | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 88f9fc84..dd989c81 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -53,7 +53,7 @@ services: command: > bash -c " cd /app && - celery -A dispatcharr worker -l info + nice -n 5 celery -A dispatcharr worker -l info " db: diff --git a/docker/uwsgi.debug.ini b/docker/uwsgi.debug.ini index e049df87..fa94df92 100644 --- a/docker/uwsgi.debug.ini +++ b/docker/uwsgi.debug.ini @@ -8,8 +8,8 @@ exec-before = python /app/scripts/wait_for_redis.py ; Start Redis first attach-daemon = redis-server ; Then start other services -attach-daemon = celery -A dispatcharr worker --autoscale=6,1 -attach-daemon = celery -A dispatcharr beat +attach-daemon = nice -n 5 celery -A dispatcharr worker --autoscale=6,1 +attach-daemon = nice -n 5 celery -A dispatcharr beat attach-daemon = daphne -b 0.0.0.0 -p 8001 dispatcharr.asgi:application attach-daemon = cd /app/frontend && npm run dev diff --git a/docker/uwsgi.dev.ini b/docker/uwsgi.dev.ini index 7e50f2ef..6eca871d 100644 --- a/docker/uwsgi.dev.ini +++ b/docker/uwsgi.dev.ini @@ -10,8 +10,8 @@ exec-pre = python /app/scripts/wait_for_redis.py ; Start Redis first attach-daemon = redis-server ; Then start other services -attach-daemon = celery -A dispatcharr worker --autoscale=6,1 -attach-daemon = celery -A dispatcharr beat +attach-daemon = nice -n 5 celery -A dispatcharr worker --autoscale=6,1 +attach-daemon = nice -n 5 celery -A dispatcharr beat attach-daemon = daphne -b 0.0.0.0 -p 8001 dispatcharr.asgi:application attach-daemon = cd /app/frontend && npm run dev diff --git a/docker/uwsgi.ini b/docker/uwsgi.ini index b35ea5bf..f763c3bc 100644 --- a/docker/uwsgi.ini +++ b/docker/uwsgi.ini @@ -10,8 +10,8 @@ exec-pre = python /app/scripts/wait_for_redis.py ; Start Redis first attach-daemon = redis-server ; Then start other services -attach-daemon = celery -A dispatcharr worker --autoscale=6,1 -attach-daemon = celery -A dispatcharr beat +attach-daemon = nice -n 5 celery -A dispatcharr worker --autoscale=6,1 +attach-daemon = nice -n 5 celery -A dispatcharr beat attach-daemon = daphne -b 0.0.0.0 -p 8001 dispatcharr.asgi:application # Core settings