Skip to content

Commit

Permalink
Give job correct id on create
Browse files Browse the repository at this point in the history
  • Loading branch information
crizCraig committed Sep 6, 2019
1 parent 88017be commit 7344ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def submit_eval_job(docker_tag, eval_id, eval_key, problem, pull_request, seed,

log.info(f'Submitting job {eval_id}: {job.to_json(indent=2, default=str)}')

submitted = db.compare_and_swap(key=eval_id,
submitted = db.compare_and_swap(key=job_id,
expected_current_value=None,
new_value=job.to_dict())

Expand Down

0 comments on commit 7344ef3

Please sign in to comment.