Skip to content

Commit

Permalink
fix(celery): Fix celery cocurrency and numprocs to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
DoyunShin committed Dec 9, 2024
1 parent 859ef1e commit d524e9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .docker/supervisor-app.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[program:gunicorn]
command=gunicorn -b 0.0.0.0:9000 -w 3 --timeout 120 ara.wsgi:application
command=gunicorn -b 0.0.0.0:9000 -w 8 --timeout 120 ara.wsgi:application
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
Expand Down
3 changes: 2 additions & 1 deletion .docker/supervisor-celery-worker.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[program:celery-worker]
command=celery -A ara worker -l info
command=celery -A ara worker -l info -w 1 --concurrency=1
directory=/newara/www
stdout_logfile=/var/log/newara/celery-worker.log
stderr_logfile=/var/log/newara/celery-worker.log
numprocs=1

0 comments on commit d524e9b

Please sign in to comment.