StackStorm / StackStorm/st2

Killing action runner process should set running actions state to "abandoned" and not "failed"

Open
#3,449 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

In systemd hosts like U16 and EL7, running something like

st2 run core.local cmd="sleep 180; echo covfefe" timeout=300 -a; sleep 30; sudo systemctl stop st2actionrunner; sleep 10; st2 execution list

shows action status as ```failedand notabandoned``.

NOTE: This does not happen always. So I believe there is a race of some sort in U16.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the systemd scenario on the U16 or EL7 hosts using st2 run, stopping st2actionrunner, and checking st2 execution list. Investigate the intermittent shutdown race; done means actions interrupted by killing the runner are consistently reported as abandoned rather than failed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.