不再使用django-celery,使用原生celery代替
This commit is contained in:
@@ -12,5 +12,4 @@ pillow
|
|||||||
jsonfield
|
jsonfield
|
||||||
Envelopes
|
Envelopes
|
||||||
celery
|
celery
|
||||||
django-celery
|
|
||||||
qrcode
|
qrcode
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user