StackStorm / StackStorm/st2

Wildcard support for execution list action filter

Open
#3,422 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It would be very nice to have wildcard support for the execution list action filter.

Something like:

st2 execution list --action my_job.* -j -n 1

At the moment it's only possible to specify a specific action. I want to build JSON output, that is useable for the Jenkins Job Monitor frontend. Without the wildcard I have to executed a lot of API calls every time the dashboard refreshes, which is every 5 seconds.

image

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 with the execution list CLI and its action-filter handling, then trace how the filter is passed to execution queries. Done means st2 execution list --action my_job.* -j -n 1 returns executions for matching actions in one request or equivalent filtered query, with JSON output suitable for the dashboard.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.