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

Dustin decker/max concurrent jobs #126

Merged

Conversation

JohnRoesler
Copy link
Contributor

What does this do?

  • Adds the ability to limit the maximum concurrently running jobs on the scheduler
  • Adds modes for the max concurrency, of reschedule or wait

Which issue(s) does this PR fix/relate to?

resolves #53
closes #63

List any changes that modify/break current functionality

Have you included tests for your changes?

👍

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

@JohnRoesler
Copy link
Contributor Author

if ya'll wouldn't mind taking a look and let me know what you think of this implementation, I would greatly appreciate it! (i tagged everyone involved in the other open PR)

@dustin-decker, @temamagic, @farwydi, @Streppel, @arjunmahishi

executor.go Outdated Show resolved Hide resolved
if e.maxRunningJobs != nil {
if !e.maxRunningJobs.TryAcquire(1) {

switch e.limitMode {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really liked this approach

Streppel
Streppel previously approved these changes Feb 23, 2021
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.

[FEATURE] - Maximum concurrent jobs
3 participants