StackStorm / StackStorm/st2

Feature Proposal: Action Scheduler

Open
#3,691 7 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently it is not possible to dynamically schedule the execution of actions or workflows: it can be done using the rules but these are static, so if you want to include some logic regarding when (and if) a task need to be executed, you need to implement this logic in the action's body.

We would like to propose the introduction of of a scheduler for running actions and workflows.

This scheduler not only allows users to schedule actions and workflows, but also re-schedule based on logicconditions (perhaps YAQL?) and return information relating to the scheduler queue such as depth and a read out of each task and it's planned execution.

The scheduler should also return an ID to inspect current scheduled state along with results on completion.

Look forward to the response. We believe this will be of value to the wider community.

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 reviewing the existing rules, action, and workflow execution paths to understand where scheduling could fit. The proposal describes dynamic scheduling, rescheduling conditions, queue inspection, task IDs, and completion results, but names no files or tests. Done would require an agreed design and implementation covering these scheduler capabilities.

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
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.