Restart a Service Fabric service after failed RunAsync

moldy 21 Reputation points
2020-06-10T14:35:16.613+00:00

I have a scenario where RunAsync can fail because a backend dependency may not be up yet. Is there a way to configure SF to restart a service after a duration?

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
251 questions
{count} votes

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,886 Reputation points Microsoft Employee
    2020-06-30T16:39:36.497+00:00

    @moldy Apologies for the delay in response.

    Can you try catching the exception internally in the code and retry and see if it works for you or not?

    0 comments No comments