hashicorp / nomad

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.
https://www.nomadproject.io/
Other
14.78k stars 1.94k forks source link

Feature to pause a running task #19899

Open seczoid opened 7 months ago

seczoid commented 7 months ago

Hi, Is there any existing feature that would allow me to pause a running job and then resume it on demand.

lgfa29 commented 7 months ago

Hi @seczoid 👋

Thank you for the suggestion 🙂

Could clarify what you mean by "pausing the job"? Would it be something like the docker container pause command?

seczoid commented 7 months ago

Hi @seczoid 👋

Thank you for the suggestion 🙂

Could clarify what you mean by "pausing the job"? Would it be something like the docker container pause command?

yeah something like docker container pause and in the case of a raw_exec something like SIGSTOP to pause and SIGCONT to resume.

lgfa29 commented 7 months ago

Got it, thanks! This would likely require new capabilities in our task driver SDK interface, so there are some details to think through.

I've placed this in our board for further roadmapping and triage.