StackStorm / StackStorm/st2

Feature Request: Trigger Instance for Policies

Open
#4,648 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

SUMMARY

When a policy cancels an action or a workflow, there's no way one can know the action/workflow was canceled by the policy. From the conversation we had in Slack, we'd like to have a trigger instance to be able to write a rule and do whatever is needed.
In addition to the trigger instance, it's a good idea to have a message being published when a workflow/action is canceled by a policy so StackStorm users can have an idea of what caused the cancellation.

ISSUE TYPE
  • Feature Idea
STACKSTORM VERSION

st2 2.10.3, on Python 2.7.5

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 tracing how policies cancel actions and workflows, then examine the existing trigger-instance and message-publishing entry points. Define the behavior for identifying policy-caused cancellation and publishing its message; the work is done when users can write a rule from the trigger instance and see what caused the cancellation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, devops
Issue type
Feature
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.