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

Feature/improve pending jobs #13

Merged
merged 3 commits into from
Sep 28, 2022
Merged

Conversation

ssscrom
Copy link
Contributor

@ssscrom ssscrom commented Sep 27, 2022

From calling once every startup, this pull request processes pending jobs as a cronjob. For every tick, it queries a bunch of jobs matching requirements and processes these jobs iteratively.

This pull request resolves these problems:

  • CPU spikes
  • Ratelimiter from other sides prevent the flow become failed unintentionally
  • Processes pending jobs only once time

controller.go Outdated Show resolved Hide resolved
@ssscrom ssscrom merged commit 7d18f2c into master Sep 28, 2022
@DNK90 DNK90 deleted the feature/improve-pending-jobs branch December 2, 2022 04:46
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