Skip to main content
SaltStack Support

Queueing of State Jobs

Problem

We get an error while executing a state if another state is already running on the Minion. Our expectation is that Salt should queue up the new Job and should run when the first one is complete.

This applies to Runner and Orchestrate jobs as well.

Solution

Salt does not behave as assumed above. Salt’s normal behavior is to display the `”Highstate is already running with JID NNNNNN”`

There is a `queue` flag to state.highstate and state.sls but it is strongly encouraged to use these mechanisms sparingly.

For more details, see this doc: Queueing with Highstate

  • Orchestrate does not have that flag.
  • Runners can run concurrently.
  • Was this article helpful?