Open
Description
Proposal
https://developer.hashicorp.com/nomad/docs/job-specification/lifecycle#lifecycle-parameters
Allow hook
to accept array
Use-cases
We have cleanup task. The definition is the exactly the same for prestart
and poststop
hooks. It would be nice to configure them as:
task "cleanup-smthg" {
lifecycle {
hook = ["prestart", "poststop" ]
sidecar = false
}
...
}
Attempted Solutions
Copy/paste hook and change its type: prestart -> poststop
Metadata
Metadata
Assignees
Type
Projects
Status
Needs Roadmapping