Graceful stop of action runners

Do you know, is it possible to perform a graceful stop of an action runner to avoid interruption of the running actions and waiting until they are completed before stopping the process?

Denis, if you do a systemctl stop st2actionrunner it does exactly what you describe.

Nick, thank you for the answer! We are running on Ubuntu 14 so systemctl is unawailable, but when we do service st2actionrunner stop the running actions go to “Abandoned” state. Can it be because of the old OS? From the source code I can see the it is correct for abandoning running actions during shut down: st2/ at master · StackStorm/st2 · GitHub

@denis-rodionov Sorry. Stopping the actionrunner service will interrupt the running actions associated with that specific service instance. There is no way to workaround it at the moment and wait for actions to complete or reschedule.

Here is the Github issue Death of st2actionrunner process causes action to remain running forever · Issue #4716 · StackStorm/st2 · GitHub for more context.