This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

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/worker.py 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.