Saltstack ending a task that is being performed

Source: Internet
Author: User
Tags saltstack

Saltstack in the Minion side of the task, sometimes there are problems, such as hang, not the end.

For example, we execute the following Salt command:

Salt ' * ' cmd.run ' ping outofmemory.cn '

ping outofmemory.cnThis command will continue to ping under Linux, we do not give -c 4 the parameters, this time we need to end this command.

First you need to find the job_id of this task, which can be done by running on the master side:

Salt-run jobs.active

Displays the currently active task ID, for example: At 20141230094047407913 this point we can execute a salt command to end the job.

Salt ' * ' saltutil.term_job 20141230094047407913


This article is from the "Goku" blog, please make sure to keep this source http://jojy0.blog.51cto.com/7512056/1692721

Saltstack ending a task that is being performed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.