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.

How to handle long running command using core.remote?

There is a timeout option for the core.remote action. Run st2 run core.remote -h to look at the timeout option. The following is an example.

~/st2$ st2 run core.remote hosts=localhost cmd=date timeout=120
id: 5b2abdf21e2e240a543784e7
status: succeeded
  cmd: date
  hosts: localhost
  timeout: 120
    failed: false
    return_code: 0
    stderr: ''
    stdout: Wed Jun 20 20:49:56 UTC 2018
    succeeded: true