One or more tasks did not complete before the timeout was reached. We waited 10.2 minutes for the tasks to complete

I’m using the visual studio team services plugins to build and deploy an Octopus package. Our dpeloyment takes about an hour, and I need the VSTS task to wait for it to complete to then run some tests, so I have checked the box to “show deployment process” so it waits, however the task always fails with the errors:

2017-03-29T11:05:47.8416596Z One or more tasks did not complete before the timeout was reached. We waited 10.2 minutes for the tasks to complete.
2017-03-29T11:05:47.8416596Z One or more tasks did not complete before the timeout was reached. We waited 10.2 minutes for the tasks to complete.
2017-03-29T11:05:47.8416596Z Exit code: -1
2017-03-29T11:05:48.0760187Z ##[error]Process ‘Octo.exe’ exited with code ‘-1’.

I have tried setting the timeout in the VSTS plugin to both 0 and 240, but neither seem to take effect. How can I make the Octopus plugin wait for more than 10 mins? Deployments work fine when done through the Octopus web app.

Any chance this can be looked at please?

Hi Sam,

Apologies for the delay in replying.

There’s an argument you can pass to octo.exe (which is what does the work under the covers) to set the timeout longer. The value is in seconds, and the default is 600 (10min), which matches what you’re seeing.

To add additional octo.exe arguments, expand the Additional Options section in the Deploy step.

Let me know how you go!

Thanks,
Damian

1 Like