-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify ready execution claiming, passing only job_ids
We no longer need to pass executions, as that was a change to prepare for an implementation of sequential jobs that I won't be pursuing. We can simply pluck the job_ids of the selected executions, which as a side-effect, avoids an extra query due to counting the jobs before actually trying to claim them. Thanks to @djmb for spotting the extra `exists?` query that was a consequence of this change.
- Loading branch information
Showing
2 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters