Skip to content

feat: support for reservations - #5

Merged
vsoch merged 2 commits into
mainfrom
add-reservations
Jan 18, 2025
Merged

feat: support for reservations#5
vsoch merged 2 commits into
mainfrom
add-reservations

Conversation

@vsoch

@vsoch vsoch commented Jan 18, 2025

Copy link
Copy Markdown
Member

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