St2 (v3.5) python script action takes 12 seconds with a simple echo action
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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