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

feat: support for reservations #5

Merged
merged 2 commits into from
Jan 18, 2025
Merged

feat: support for reservations #5

merged 2 commits into from
Jan 18, 2025

Conversation

vsoch
Copy link
Member

@vsoch vsoch commented Jan 18, 2025

Since fluxion is single threaded, we need to ensure the maxWorkers is 1, and a single job to cancel reservations is issued at the end of each batch group of jobs (that are issuing calls to AskFlux to schedule work). For the final job to clear reservations, we retrieve them from the reservation table, issue a cancel to fluxion for each one, and then clear the rows of the table as we go. This ensures that if there is an error to cancel a job it will be tried again in the next loop.

Since fluxion is single threaded, we need to ensure the
maxWorkers is 1, and a single job to cancel reservations
is issued at the end of each batch group of jobs (that
are issuing calls to AskFlux to schedule work). For the
final job to clear reservations, we retrieve them from
the reservation table, issue a cancel to fluxion for
each one, and then clear the rows of the table as we go.
This ensures that if there is an error to cancel a job
it will be tried again in the next loop.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Also ensure that cleanup max attempts is 3
and not infinite retry (which we have for the
schedule function, essentially).

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch merged commit d6d7535 into main Jan 18, 2025
@vsoch vsoch deleted the add-reservations branch January 18, 2025 18:31
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