StackStorm / StackStorm/st2

Delay policy is not working

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

Nobody has claimed this yet.

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

Description

SUMMARY

All action Chains are running together. It should run after the execution of first action-chain is complete.

st2 3.7.0, on Python 3.8.10

Steps to reproduce the problem

we have created a policy to make sure action-chain run one after another

name: action_name.concurrency
description: Limits the concurrent executions for action.
enabled: true
resource_ref: pack.action_name
policy_type: action.concurrency
parameters:
action: delay
threshold: 1

Sample policy.yaml

Expected Results

Execution of the new action chain should start only after the previous one is completed

Actual Results

Multiple actions are running at the same time which is affecting our logic which checks the previous output.

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 with the supplied policy.yaml configuration on StackStorm 3.7.0 and Python 3.8.10, using multiple executions of the action chain. The work is done when the concurrency threshold of 1 prevents a new action-chain execution from starting until the previous one completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
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.