StackStorm / StackStorm/st2

Stackstorm jobs are stuck and not running

Open
#6,013 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

SUMMARY

We have an issue where Stackstorm jobs are getting stuck and platform gets into hung state when there are 400+ alerts received in the same time interval.
Issue: Alerts getting Stuck in Scheduled or Delay state
Volume : 400+ alerts
Pattern: To run each alert sequentially

STACKSTORM VERSION

st2 --version: st2 3.7.0, on Python 3.8.10

OS, environment, install method

ST2: Docker in our CaaS Container.
Kubernetes HA. System Requirement is aligned with St2 doc

Steps to reproduce the problem

We face this issue as in when we receive same type of alerts for the same host and check value for which correlation is maintained. In case we receive such multiple alerts at same minute, the 1st alert start running and rest all alerts are getting hung state. We have a volume of 400+ alerts coming to Stackstorm and requires execution.

Expected Results

Alerts should not get stuck and to run as expected by the product

Actual Results

Alerts are stuck and then requires manual cleaning and handling

Need immediate support.

Thanks!

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 issue in the stated StackStorm 3.7.0 Python 3.8.10 Kubernetes HA deployment with 400+ same-host alerts arriving together. Trace how alerts enter Scheduled or Delay state and run sequentially; done means the alerts execute without becoming stuck or requiring manual cleanup.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, kubernetes, python
Domain
backend, devops, distributed-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.