I am using Octopus deploy to deploy a python service. We have used NSSM to create a windows service for the python process. Before deployment we require to stop the service.
I have added “Run a script” to stop the windows service. On some environments it works fine, in others the script returns a Pending Status due (in the background that service stops fine) This causes Octopus deploy to mark that step as failed and it fails the entire deployment even though its actually success. Is there a way to mark the step and entire process as a success instead of failure?