修改判题的目录结构;增加celery 配置
This commit is contained in:
8
judge/controller/tasks.py
Normal file
8
judge/controller/tasks.py
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user