不再使用django-celery,使用原生celery代替

This commit is contained in:
virusdefender
2016-04-22 21:52:53 +08:00
parent 1e73eca339
commit a210689a07
3 changed files with 1 additions and 6 deletions
@@ -12,5 +12,4 @@ pillow
jsonfield jsonfield
Envelopes Envelopes
celery celery
django-celery
qrcode qrcode
+1 -1
View File
@@ -1,5 +1,5 @@
[program:task_queue] [program:task_queue]
command=python manage.py celeryd -l DEBUG command=celery -A oj worker -l DEBUG
directory=/code/ directory=/code/
user=nobody user=nobody
numprocs=1 numprocs=1
-4
View File
@@ -24,9 +24,6 @@ elif ENV == "server":
from .custom_settings import * from .custom_settings import *
import djcelery
djcelery.setup_loader()
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -54,7 +51,6 @@ INSTALLED_APPS = (
'judge_dispatcher', 'judge_dispatcher',
'rest_framework', 'rest_framework',
'djcelery',
) )
if DEBUG: if DEBUG: