Stop a task in progress
You can stop a task that is currently running if, for example, you realize you need to adjust your PQL query or edit the task run parameters.
- In the PE console, go to the Tasks page, find the task run you want to stop, and click Stop job.
- On the command line, press CTRL + C.
- Use POST /command/stop.
When you stop a task, any Puppet runs that are already
underway finish, but no new runs start on the node until you initiate the task
again. While in-progress runs finish, the server continues to produce events for the
job. The job's status changes to
stopped once all
in-progress runs finish.
forceoption with POST /command/stop or use the force stop option in the console.
Be aware that
force immediately ends
the job. This can result in an inconsistent or undesirable state due to job
components (tasks, plans, Puppet runs, and
so on) being ended prematurely.