Force an unchanged batch job to run again

Hi, I have a job like this:

job "myimage-batch" {
  datacenters = ["eu-central-1"]
  type = "batch"

  group "group" {
    count = 1

    restart {
      interval = "20s"
      attempts = 0
      delay    = "5s"
      mode     = "delay"
    }

    task "migrate" {
      driver = "docker"

      config {
        image = "kaspergrubbe/myimage:0.0.1"
        command = "bundle"
        args = ["exec", "rake", "db:migrate"]
      }

      resources {
        cpu    = 500 # 500 MHz
        memory = 256 # 256MB
        network {
          mbits = 10
        }
      }
    }
  }
}

And I schedule it after it has run successfully once, I can’t get it to run again. Is there a way to force it to run without resorting to tricks like this:

env {
  FORCE_RERUN = "<%= Time.now.to_i %>"
}

Hi,

This was answered on the mailing list, I had missed the endpoint of “/v1/job/:job_id/periodic/force” described here: https://www.nomadproject.io/api/jobs.html#force-new-periodic-instance