StackStorm / StackStorm/st2

Ability to define a task which is always called after an action chain workflow finishes (either fails or succeeds)

Open
#1,240 1 comment 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

It would be useful if user could define a step which is always called when a workflow finishes and / or fails. You can think of it as "finally" in Python and other programming languages.

Similar end result can be achieved by adding "on-failure" to every step, but defining this function once is nicer.

Here is an example from a workflow I'm currently working on:

test

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

The issue names no files, tests, or entry points; start by tracing how action-chain workflows detect successful and failed completion. Define the workflow boundary and identify where a single final step could be invoked for either outcome, then add coverage showing that it runs after both success and failure.

Written by the indexing model from the issue text.

Assessment

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