Timeout for an Orquesta Workflow

I have a workflow and want to add a timeout to the workflow.

For any reason the workflows doesn’t complete execution (Successfully or with Failure) for a particular amount of time. lets says within 2 hours a workflow does not gives result i want the workflow to be terminated automatically.

i am using orquesta workflows.

1 Like

Hi blag, thanks for sharing the solution. can you help me with how to use -timeout in orquesta.
i am new to stackstorm, so don’t know it , like whether to use as input to workflow or some other way.

when using python action in orquesta, you could add “timeout” key under parameter in the python action’s yaml file:

default: 3600
type: integer

And then add “timeout” in the run() function’s parameters:
def run(self, timeout):