Skip to content

Instantly share code, notes, and snippets.

@lgfa29
Created July 12, 2022 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgfa29/f68afcf232872e709b936ff3d0d9393b to your computer and use it in GitHub Desktop.
Save lgfa29/f68afcf232872e709b936ff3d0d9393b to your computer and use it in GitHub Desktop.
nomad job allocs -t '{{range .}}{{println .ID}}{{end}}' example | xargs -n1 nomad alloc restart
nomad job allocs -json example | jq '.[].ID' | xargs -n1 nomad alloc restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment