Nomad Autoscaler not refreshing Scaling Policy after nomad job run

Hi everyone,

I’m experiencing an issue where the Nomad Autoscaler (v0.4.9) does not seem to pick up changes made to a scaling policy when the job is updated via nomad job run.

The Scenario:

  1. I have a job with an active scaling policy.

  2. I modify the scaling block in the HCL file (e.g., changing a parameter or fixing a query).

  3. I execute nomad job run <jobfile>.nomad.

  4. The Autoscaler continues to use the previous version of the policy (or remains in an error state if the previous version was broken), even though Nomad shows the job has been updated.

Currently, the only ways I’ve found to force the Autoscaler to see the new policy are:

  • Performing a nomad job stop -purge followed by a fresh run (which generates a new Policy ID).

  • Restarting the Autoscaler agent/job itself.

My question: Is there a recommended way to force the Autoscaler to refresh its policy cache for a specific job without restarting the whole agent or purging the job?

Any insights or best practices would be greatly appreciated.