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

fix: only poll Semaphore API if there is space for new jobs #10

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

lucaspin
Copy link
Collaborator

Issue

We always check the Semaphore API for new jobs, even if we are already at the limit and won't be able to create new jobs.

Solution

On every controller's tick, if there is no space for more jobs, we don't even ask the Semaphore API for more jobs.

@lucaspin lucaspin merged commit 36ce18d into main Jan 24, 2024
1 check passed
@lucaspin lucaspin deleted the only-poll-if-space branch January 24, 2024 11:26
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.

3 participants