Skip to content
Snippets Groups Projects
Commit 2cb71e11 authored by Jiří Setnička's avatar Jiří Setnička Committed by Martin Mareš
Browse files

Naplánování jobu se scany vrací job_id

parent 69a25ae2
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !94. Comments created here will be created in the context of that merge request.
......@@ -174,7 +174,7 @@ def handle_create_protocols(the_job: TheJob):
#
def schedule_process_scans(contest: db.Contest, site: Optional[db.Place], for_user: db.User, tasks: List[db.Task], in_file_names: List[str]):
def schedule_process_scans(contest: db.Contest, site: Optional[db.Place], for_user: db.User, tasks: List[db.Task], in_file_names: List[str]) -> int:
place = site or contest.place
the_job = TheJob()
......@@ -197,6 +197,7 @@ def schedule_process_scans(contest: db.Contest, site: Optional[db.Place], for_us
'in_files': in_files,
}
the_job.submit()
return the_job.job_id
@dataclass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment