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

This commit is contained in:
virusdefender 2016-04-22 21:48:09 +08:00
parent 1e73eca339
commit a210689a07
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61
3 changed files with 1 additions and 6 deletions

View File

@ -12,5 +12,4 @@ pillow
jsonfield
Envelopes
celery
django-celery
qrcode

View File

@ -1,5 +1,5 @@
[program:task_queue]
command=python manage.py celeryd -l DEBUG
command=celery -A oj worker -l DEBUG
directory=/code/
user=nobody
numprocs=1

View File

@ -24,9 +24,6 @@ elif ENV == "server":
from .custom_settings import *
import djcelery
djcelery.setup_loader()
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -54,7 +51,6 @@ INSTALLED_APPS = (
'judge_dispatcher',
'rest_framework',
'djcelery',
)
if DEBUG: