Howto: Abort/Stop/Kill/Clean a salt runner job

2,599 views
Skip to first unread message

Robert Fach

unread,
Mar 19, 2015, 9:20:12 AM3/19/15
to salt-...@googlegroups.com
Hi,

in a test I have triggered an orchestration job on my salt master using (several times)

salt-run state.orchestrate start-the-music

After some runs, I aborted the job in the middle and now the whole orchestration fails because it reports that some jobs are still running.

salt-run jobs.active

20150319142402321174:
    ----------
    Arguments:
        - salt.master
        |_
          ----------
          __kwarg__:
              True
          concurrent:
              False
          saltenv:
              base
    Function:
        state.sls
    Returned:
    Running:
        |_
          ----------
         host1:
              14949
        |_
          ----------
          host2:
              10066
    Target:
        host1* or host2*
    Target-type:
        compound
    User:
        root

How can I abort that job, how can I tell salt that there is nothing running anymore...?

Thx for your help

Colton Myers

unread,
Mar 24, 2015, 6:05:18 PM3/24/15
to salt-...@googlegroups.com
You can easily kill jobs with a given job id using saltutil.kill_job (http://docs.saltstack.com/en/latest/topics/jobs/#functions-in-the-saltutil-module)

--
Colton Myers
Platform Engineer, SaltStack
@basepi on Github/Twitter/IRC
> --
> You received this message because you are subscribed to the Google Groups "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages