File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
webapp/src/Controller/Jury Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments