OnlineJudge/judge/tasks.py

9 lines
246 B
Python
Raw Permalink Normal View History

from __future__ import absolute_import, unicode_literals
2017-05-08 17:29:01 +08:00
from celery import shared_task
from judge.dispatcher import JudgeDispatcher
2017-05-08 17:29:01 +08:00
@shared_task
def judge_task(submission_id, problem_id):
JudgeDispatcher(submission_id, problem_id).judge()