Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify ready execution claiming, passing only job_ids #39

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

rosa
Copy link
Member

@rosa rosa commented Nov 7, 2023

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.

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.
@rosa rosa marked this pull request as ready for review November 7, 2023 16:24
@rosa rosa merged commit c8caf88 into main Nov 7, 2023
4 checks passed
@rosa rosa deleted the remove-exists-query-on-polling branch November 7, 2023 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant