StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html
https://stackstorm.com/
Apache License 2.0
6.11k stars 746 forks source link

Timeout support for Orquesta tasks #6177

Open jesvilnie opened 8 months ago

jesvilnie commented 8 months ago

I have found missing the implementation of timeout logic for the Orquesta tasks.

It would be really nice to have something like this:

...
tasks:
  my_task:
    action: mypack.myaction 
    retry:
      delay: 10
      count: 3
    timeout: 120
    next:
       - when: <% timedout() %>
          do: task_for_managing_timeout
...
Aliskaa commented 5 months ago

I would like it too

jamesdreid commented 5 months ago

Every action/task in ST2 has a timeout so that value can be set on the action itself. Not quite the same as the task level but it does make the "failure" criteria more clear as it remains a function of the action itself.