We have a service that can take 10 -20 seconds to stop and when we deploy it using Octopus the deployment fails. The reason looks like the tentacle does not wait long enough for the service to stop and the dlls still have something holding them. All I’m doing is putting this in the predeploy.ps1
Stop-Service Application1 -force
Do I need to put a sleep in the script so it waits longer?
Thank you! This resolved the issue, but it feels dirty…Seems like Octopus could be smart enough to know how to handle this situation. But maybe it’s not Octopus’s job to know. I’ll leave that up to you guys to decide!