Is there a way to set a timeout for a release step (like a script) or for the entire release?

Just had a release hang and had to cancel it manually but in the event the release is more unattended a timeout safety net would be handy.

Hey Geoff,

Thanks for reaching out.

I’m sorry but unfortunately, we don’t have that feature. There’s a thread over on uservoice you can vote for here: https://octopusdeploy.uservoice.com/forums/170787-general/suggestions/6396476-add-timeout-support-for-individual-steps-and-overa

As a workaround you could adapt this example script to fit your use case: https://github.com/OctopusDeploy/OctopusDeploy-Api/blob/master/REST/PowerShell/Deployments/CancelLongRunningTasks.ps1

If you run that on a scheduled trigger every X minutes it would probably largely mitigate the issue. Please do ample testing before implementing in a prod environment as example scripts are not guaranteed to work in every scenario.

Please let me know if that will work for you.