This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

Stackstorm Stream st2client

I am testing an application which creates executions with st2client (Python). How can I create a stream for a particular execution (get stream by id?) To show the output on a webpage? I can get execution by id but can’t get the stream working. Is there any documentation for st2client (Python)

Hi @Reth. Great to have you here!

Can you expand on your use case more?

  • What info do you want for the stream?
  • Are these workflow or just actions?

Stream API docs are here: https://api.stackstorm.com/stream/v1/stream/#/stream_controller.get_all

An intro to the st2client is here: Quick Start — StackStorm 3.1.0 documentation

Reference guide here: CLI Reference — StackStorm 3.1.0 documentation

Every st2 command has a -h help output, and the “—debug” command will give you the curl command that the st2 cli used to get its output.

Finally, one way to learn how to get execution status would be to watch the history tab with Chrome Inspector.

hope this helps. If so, please mark as the solution.

Blockquote

Hi, basically I use the python st2client (https://pypi.org/project/st2client) to create executions of simple actions. Some of these actions can last for few minutes. I want to be able to get a real time stream from python client (Not CLI) on to the webpage. Is there any documentation for the python client? Would you be able to provide a python code to get the stream given the execution is already created.

Thanks

did you ever figure it out? it’s not clear how to do it using st2client.