Skip to content

Commit 2f437bc

Browse files
authored
Fix queue attribute name in tasks.py (#2306)
* Fix queue attribute name * Fix code
1 parent 2fb79f7 commit 2f437bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apps/competitions/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ def _send_to_compute_worker(submission, is_scoring):
195195
time_limit = submission.phase.execution_time_limit + time_padding
196196

197197
if submission.phase.competition.queue: # if the competition is running on a custom queue, not the default queue
198-
submission.queue_name = submission.phase.competition.queue.name or ''
198+
submission.queue = submission.phase.competition.queue
199199
run_args['execution_time_limit'] = submission.phase.execution_time_limit # use the competition time limit
200-
submission.save(update_fields=["queue_name"])
200+
submission.save(update_fields=["queue"])
201201
if submission.status == Submission.SUBMITTING:
202202
# Don't want to mark an already-prepared submission as "submitted" again, so
203203
# only do this if we were previously "SUBMITTING"

0 commit comments

Comments
 (0)