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

Backport of Multiple instances of a periodic job are run simultaneously, when prohibit_overlap is true into release/1.5.x #16681

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

Juanadelacuesta
Copy link
Member

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • style: refactor tests to use must

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • Update nomad/leader_test.go

Co-authored-by: James Rasell jrasell@users.noreply.github.com

  • fix: move back from defer to calling unlock before returning.

createEval cant be called with the lock on

  • style: refactor test to use must

  • added new entry to changelog and update comments


Co-authored-by: James Rasell jrasell@hashicorp.com
Co-authored-by: James Rasell jrasell@users.noreply.github.com

…hibit_overlap is true (#16583)

* Multiple instances of a periodic job are run simultaneously, when prohibit_overlap is true
Fixes #11052
When restoring periodic dispatcher, all periodic jobs are forced without checking for previous childre.

* Multiple instances of a periodic job are run simultaneously, when prohibit_overlap is true
Fixes #11052
When restoring periodic dispatcher, all periodic jobs are forced without checking for previous children.

* style: refactor force run function

* fix: remove defer and inline unlock for speed optimization

* Update nomad/leader.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* style: refactor tests to use must

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* Update nomad/leader_test.go

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>

* fix: move back from defer to calling unlock before returning.

createEval cant be called with the lock on

* style: refactor test to use must

* added new entry to changelog and update comments

---------

Co-authored-by: James Rasell <jrasell@hashicorp.com>
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
@Juanadelacuesta Juanadelacuesta changed the base branch from main to release/1.5.x March 28, 2023 11:14
@jrasell jrasell self-requested a review March 28, 2023 11:15
@Juanadelacuesta Juanadelacuesta changed the title Mcj/backport/b-gh-11052 Backport of Multiple instances of a periodic job are run simultaneously, when prohibit_overlap is true into release/1.5.x Mar 28, 2023
@1FastSTi
Copy link

Do we know in what version this is being released?

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.

Multiple instances of a periodic job are run simultaneously, when prohibit_overlap is true
3 participants