Nomad periodic job starts immediately

Viewed 672

I have a nomad periodic job that has this in the job config:

periodic {
  cron = "* */2 * * *"
  prohibit_overlap = true
}

However, I find that when nomad finishes running the job (the job takes less than two hours), it more or less immediately starts it again (sometimes within 60 seconds). I expected it to start it after about two hours.

Why does that happen, and how can I make nomad start the job only every two hours?

1 Answers
Related