Skip to content

services: warn on job submit when job has services but no shutdown_delay#27782

Merged
pkazmierczak merged 15 commits intomainfrom
f-warn-on-submit-services-but-no-shutdown-delay
Apr 23, 2026
Merged

services: warn on job submit when job has services but no shutdown_delay#27782
pkazmierczak merged 15 commits intomainfrom
f-warn-on-submit-services-but-no-shutdown-delay

Conversation

@pkazmierczak
Copy link
Copy Markdown
Contributor

Emit a warning when a job is submitted with services defined and no service at
the task-level has shutdown_delay set.

Resolves #23326
Internal ref: https://hashicorp.atlassian.net/browse/NMD-430

@pkazmierczak pkazmierczak requested review from a team as code owners April 2, 2026 11:21
@pkazmierczak pkazmierczak self-assigned this Apr 2, 2026
@pkazmierczak pkazmierczak added theme/task lifecycle theme/service-discovery backport/ent/1.10.x+ent backport to 1.10.x+ent release line backport/ent/1.11.x+ent backport to 1.11.x+ent release line backport/2.0.x backport to 2.0.x release line labels Apr 2, 2026
Comment thread nomad/structs/structs.go Outdated
Comment thread nomad/structs/structs_test.go Outdated
Copy link
Copy Markdown
Member

@gulducat gulducat left a comment

Choose a reason for hiding this comment

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

sorry I have another condition to handle 🙃

Comment thread nomad/structs/structs.go
Comment thread nomad/structs/structs.go Outdated
@pkazmierczak pkazmierczak requested a review from gulducat April 7, 2026 08:37
Copy link
Copy Markdown
Member

@gulducat gulducat left a comment

Choose a reason for hiding this comment

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

I hope these suggestions make more sense than my attempt at englishing?

Comment thread nomad/structs/structs.go Outdated
Comment thread nomad/structs/structs.go Outdated
Comment thread nomad/structs/structs.go Outdated
Comment thread nomad/structs/structs.go
Comment thread nomad/structs/structs.go Outdated
Comment thread nomad/structs/structs.go Outdated
Co-authored-by: Daniel Bennett <8812489+gulducat@users.noreply.github.com>
Co-authored-by: Daniel Bennett <8812489+gulducat@users.noreply.github.com>
@pkazmierczak
Copy link
Copy Markdown
Contributor Author

@gulducat can you take another look? I think I addressed all the comments.

@pkazmierczak pkazmierczak added this to the 2.0.1 milestone Apr 20, 2026
Copy link
Copy Markdown
Member

@gulducat gulducat left a comment

Choose a reason for hiding this comment

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

LGTM!

@pkazmierczak pkazmierczak merged commit 727f2b0 into main Apr 23, 2026
39 checks passed
@pkazmierczak pkazmierczak deleted the f-warn-on-submit-services-but-no-shutdown-delay branch April 23, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/ent/1.10.x+ent backport to 1.10.x+ent release line backport/ent/1.11.x+ent backport to 1.11.x+ent release line backport/2.0.x backport to 2.0.x release line theme/service-discovery theme/task lifecycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

warn on job submit when job has services but no shutdown_delay

2 participants