Skip to content

Commit

Permalink
(no-ticket) Config update information for django-celery removing.
Browse files Browse the repository at this point in the history
Change-Id: Ice7076e3c1906b3f8ff37436e5ca5dd3b39be0bf
  • Loading branch information
jbhayven committed May 12, 2020
1 parent e2326bc commit 55deb7d
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
60 changes: 60 additions & 0 deletions UPGRADING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -806,3 +806,63 @@ List of changes since the *CONFIG_VERSION* numbering was introduced:
+
# Number of concurrently evaluated submissions (default is 1).
#EVALMGR_CONCURRENCY = 30

#. * Removed 'celerycam' and 'cleanupd' from the list of supervisor programs.
Updated celery worker startup commands.::

--- a/oioioi/deployment/supervisord.conf.template
+++ b/oioioi/deployment/supervisord.conf.template
@@ -19,13 +19,6 @@ stdout_logfile={{ PROJECT_DIR }}/logs/uwsgi.log
stderr_logfile={{ PROJECT_DIR }}/logs/uwsgi-err.log
{% if settings.UWSGI_ENABLED == False %}exclude=true{% elif settings.UWSGI_ENABLED == 'auto' and settings.DEBUG %}exclude=true{% endif %}

-[program:celerycam]
-command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py celerycam --pidfile={{ PROJECT_DIR }}/pidfiles/celerycam.pid
-startretries=0
-redirect_stderr=false
-stdout_logfile={{ PROJECT_DIR }}/logs/celerycam.log
-stderr_logfile={{ PROJECT_DIR }}/logs/celerycam-err.log
-
[program:rankingsd]
command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py rankingsd
startretries=0
@@ -41,7 +34,7 @@ stdout_logfile={{ PROJECT_DIR }}/logs/mailnotifyd.log
stderr_logfile={{ PROJECT_DIR }}/logs/mailnotifyd-err.log

[program:unpackmgr]
-command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py celeryd -E -l info -Q unpackmgr -c {{ settings.UNPACKMGR_CONCURRENCY }}
+command=celery -A oioioi.celery worker -E -l info -Q unpackmgr -c {{ settings.UNPACKMGR_CONCURRENCY }}
startretries=0
stopwaitsecs=15
redirect_stderr=false
@@ -49,7 +42,7 @@ stdout_logfile={{ PROJECT_DIR }}/logs/unpackmgr.log
stderr_logfile={{ PROJECT_DIR }}/logs/unpackmgr-err.log

[program:evalmgr]
-command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py celeryd -E -l info -Q evalmgr -c {{ settings.EVALMGR_CONCURRENCY }}
+command=celery -A oioioi.celery worker -E -l info -Q evalmgr -c {{ settings.EVALMGR_CONCURRENCY }}
startretries=0
stopwaitsecs=15
redirect_stderr=false
@@ -57,7 +50,7 @@ stdout_logfile={{ PROJECT_DIR }}/logs/evalmgr.log
stderr_logfile={{ PROJECT_DIR }}/logs/evalmgr-err.log

[program:evalmgr-zeus]
-command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py celeryd -E -l info -Q evalmgr-zeus -c 1
+command=celery -A oioioi.celery worker -E -l info -Q evalmgr-zeus -c 1
startretries=0
stopwaitsecs=15
redirect_stderr=false
@@ -102,12 +95,6 @@ stdout_logfile={{ PROJECT_DIR }}/logs/sioworkersd.log
stderr_logfile={{ PROJECT_DIR }}/logs/sioworkersd-err.log
{% if settings.SIOWORKERS_BACKEND != 'oioioi.sioworkers.backends.SioworkersdBackend' or not settings.RUN_SIOWORKERSD %}exclude=true{% endif %}

-[program:cleanupd]
-command={{ PROJECT_DIR }}/manage.py cleanupd
-redirect_stderr=false
-stdout_logfile={{ PROJECT_DIR }}/logs/cleanupd.log
-stderr_logfile={{ PROJECT_DIR }}/logs/cleanupd-err.log
-
[program:ipauthsyncd]
command={{ PYTHON }} {{ PROJECT_DIR }}/manage.py ipauthsyncd
startretries=0
2 changes: 1 addition & 1 deletion oioioi/default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from django.contrib.messages import constants as messages

INSTALLATION_CONFIG_VERSION = 42
INSTALLATION_CONFIG_VERSION = 43

DEBUG = False
INTERNAL_IPS = ('127.0.0.1',)
Expand Down

0 comments on commit 55deb7d

Please sign in to comment.