SaltStack: The function “state.apply” is running as PID xxxx and was started at xxxx with jid xxxx

Posted: December 27, 2017 in Linux, SaltStack

To resolve this issue, first list all running jobs

salt-run jobs.active

https://docs.saltstack.com/en/latest/topics/jobs/

Kill the job

# kill all jobs
salt '*' saltutil.kill_all_jobs

# kill the job with id
salt '*' saltutil.kill_job <job id>

https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.saltutil.html#module-salt.modules.saltutil

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s