I am spawning several ASF microservices to run some process. Once the process is done, I am deleting those services using DeleteServiceAsync
by using following code. Almost 98% of the time, everything works fine. However, 2% of the time, I run into timeout issue and the microservices stucks in deleting state with Idle Secondary replica. Thanks in advance for any suggestions to resolve this issue.
using (FabricClient fc = new FabricClient())
{
fc.ServiceManager.DeleteServiceAsync(deleteServiceDescription, TimeSpan.FromMinutes(5), cancellationToken);
}