修改判题的目录结构;增加celery 配置
This commit is contained in:
1 parent
e55997065f
commit
d37bbb3eab
13 files changed
+16
No files matched your search
@@ -0,0 +1 @@
|
||||
# coding=utf-8
|
||||
@@ -0,0 +1 @@
|
||||
celery -A judge.controller worker -l DEBUG
|
||||
@@ -0,0 +1 @@
|
||||
# coding=utf-8
|
||||
@@ -0,0 +1,5 @@
|
||||
# coding=utf-8
|
||||
from __future__ import absolute_import
|
||||
from celery import Celery
|
||||
|
||||
app = Celery("judge", broker="redis://localhost:6379/0", include=["judge.controller.tasks"])
|
||||
@@ -0,0 +1,8 @@
|
||||
# coding=utf-8
|
||||
from __future__ import absolute_import
|
||||
from judge.controller.celery import app
|
||||
|
||||
|
||||
@app.task
|
||||
def judge(source_code, language, test_case_id):
|
||||
print source_code, language, test_case_id
|
||||
Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user