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

scheduler: handle MRD jobs correctly in computeDeploymentPaused #14649

Closed
wants to merge 10 commits into from

Conversation

pkazmierczak
Copy link
Contributor

@pkazmierczak pkazmierczak commented Sep 22, 2022

when making a check for non-existing deployment in computeDeploymentPaused, make sure to check whether the deployment hasn't existed in the past. This affects MRD and other type of evaluations that do not have deployments.

Resolves https://github.com/hashicorp/nomad-enterprise/issues/737

@pkazmierczak pkazmierczak added theme/enterprise Issues related to Enterprise features backport/1.3.x backport to 1.3.x release line labels Sep 22, 2022
@pkazmierczak pkazmierczak self-assigned this Sep 22, 2022
…DeploymentPaused, make sure to check whether the deployment hasn't existed in the past. This affects MRD and other type of evaluations that do not have deployments.
Add conditions for checking more deployment scenarios, such as job
updates, job re-registration after purge, and evals not triggered by job
registration.
@pkazmierczak pkazmierczak changed the title scheduler: handle oldDeployment in computeDeploymentPaused() scheduler: handle MRD jobs correctly in computeDeploymentPaused Sep 26, 2022
@pkazmierczak pkazmierczak marked this pull request as ready for review September 26, 2022 17:17
scheduler/reconcile.go Outdated Show resolved Hide resolved
.changelog/14649.txt Outdated Show resolved Hide resolved
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Tim Gross <tgross@hashicorp.com>
@lgfa29 lgfa29 marked this pull request as draft September 27, 2022 16:50
@lgfa29
Copy link
Contributor

lgfa29 commented Sep 27, 2022

Marking it as draft for now as we found more cases that need to be handled.

@lgfa29
Copy link
Contributor

lgfa29 commented Nov 22, 2022

Closing this in favour of #15325

@lgfa29 lgfa29 closed this Nov 22, 2022
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/1.3.x backport to 1.3.x release line theme/enterprise Issues related to Enterprise features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants