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
19
19
$ alreadyRequested = [];
20
20
$ invalidJudgings = [];
21
21
$ 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
+
22
26
foreach ($ judgings as $ judging ) {
23
27
$ judgingId = $ judging ->getJudgingid ();
24
28
if ($ judging ->getResult () === null && $ lazyEval !== DOMJudgeService::EVAL_ANALYST ) {
@@ -42,7 +46,7 @@ protected function judgeRemainingJudgings(array $judgings): void
42
46
43
47
$ queueTask = new QueueTask ();
44
48
$ queueTask ->setJudging ($ judging )
45
- ->setPriority (JudgeTask:: PRIORITY_LOW )
49
+ ->setPriority ($ priority )
46
50
->setTeam ($ submission ->getTeam ())
47
51
->setTeamPriority ((int )$ submission ->getSubmittime ())
48
52
->setStartTime (null );
You can’t perform that action at this time.
0 commit comments