Skip to content

Commit

Permalink
Let ES ask for a contest id.
Browse files Browse the repository at this point in the history
This has several effects:
 - Workers precache files for the selected contest.
 - ES only looks for missing operations for the selected contest.
 - invalidate_submission() only invalidates submissions for the selected
   contest if no contest_id, submission_id, dataset_id, participation_id,
   or task_id passed to it.
  • Loading branch information
fagu authored and andreyv committed Jun 8, 2021
1 parent a446dff commit edf56fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/cmsEvaluationService
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import logging
import sys

from cms import ConfigError, default_argument_parser
from cms.db import test_db_connection
from cms.db import ask_for_contest, test_db_connection
from cms.service.EvaluationService import EvaluationService


Expand All @@ -40,7 +40,8 @@ def main():
test_db_connection()
success = default_argument_parser(
"Submission's compiler and evaluator for CMS.",
EvaluationService).run()
EvaluationService,
ask_contest=ask_for_contest).run()
return 0 if success is True else 1


Expand Down

0 comments on commit edf56fb

Please sign in to comment.