Remove sleep
This commit is contained in:
parent
1cbd4dee49
commit
f65238ba42
1 changed files with 0 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
from celery import shared_task
|
from celery import shared_task
|
||||||
from django.core.cache import cache
|
from django.core.cache import cache
|
||||||
from django.utils.translation import gettext as _
|
from django.utils.translation import gettext as _
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
from judge.models import Problem, Profile, Submission
|
from judge.models import Problem, Profile, Submission
|
||||||
from judge.utils.celery import Progress
|
from judge.utils.celery import Progress
|
||||||
|
@ -35,7 +34,6 @@ def rejudge_problem_filter(
|
||||||
for submission in queryset.iterator():
|
for submission in queryset.iterator():
|
||||||
submission.judge(rejudge=True, batch_rejudge=True)
|
submission.judge(rejudge=True, batch_rejudge=True)
|
||||||
rejudged += 1
|
rejudged += 1
|
||||||
sleep(0.1)
|
|
||||||
if rejudged % 10 == 0:
|
if rejudged % 10 == 0:
|
||||||
p.done = rejudged
|
p.done = rejudged
|
||||||
return rejudged
|
return rejudged
|
||||||
|
|
Loading…
Reference in a new issue