StackStorm / StackStorm/st2

St2 (v3.5) python script action takes 12 seconds with a simple echo action

Open
#5,887 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

Discussed in https://github.com/StackStorm/st2/discussions/5875

Originally posted by yoramzini January 30, 2023
Here is the code :

from st2common.runners.base_action import Action 
class MyTestAction(Action):
    """
    StackStorm generated action that provides an entry point to Python implementation.
    """     def run(self, instance_name: str) -> str:
        print("Hello world")
        return "my 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

Start with the Python action shown in the issue and the st2common.runners.base_action.Action entry point, then review the discussion at https://github.com/StackStorm/st2/discussions/5875. Reproduce the simple echo action and measure its execution time. Done means the reported roughly 12-second delay is explained and the action's runtime is reduced or the cause is documented.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.