Skip to content

Commit 7577142

Browse files
committed
Judging the remaining tasks is most important
1 parent e3ec344 commit 7577142

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webapp/src/Controller/Jury/JudgeRemainingTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ protected function judgeRemainingJudgings(array $judgings): void
1919
$alreadyRequested = [];
2020
$invalidJudgings = [];
2121
$numRequested = 0;
22+
23+
// In analyst mode, when explicitly requested judging the remaining tasks is most important.
24+
$priority = $lazyEval === DOMJudgeService::EVAL_ANALYST ? JudgeTask::PRIORITY_HIGH : JudgeTask::PRIORITY_LOW;
25+
2226
foreach ($judgings as $judging) {
2327
$judgingId = $judging->getJudgingid();
2428
if ($judging->getResult() === null && $lazyEval !== DOMJudgeService::EVAL_ANALYST) {
@@ -42,7 +46,7 @@ protected function judgeRemainingJudgings(array $judgings): void
4246

4347
$queueTask = new QueueTask();
4448
$queueTask->setJudging($judging)
45-
->setPriority(JudgeTask::PRIORITY_LOW)
49+
->setPriority($priority)
4650
->setTeam($submission->getTeam())
4751
->setTeamPriority((int)$submission->getSubmittime())
4852
->setStartTime(null);

0 commit comments

Comments
 (0)