You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe your workload details.
I built a .net service fabric application, it had a stateless service, I set up the service with the standard code:
`protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners()
{
return new ServiceInstanceListener[]
{
new ServiceInstanceListener(serviceContext =>
new KestrelCommunicationListener(serviceContext, "ServiceEndpoint", (url, listener) =>
{
ServiceEventSource.Current.ServiceMessage(serviceContext, $"Starting Kestrel on {url}");
return new WebHostBuilder()
.UseKestrel()
.ConfigureServices(
services => services
.AddSingleton<StatelessServiceContext>(serviceContext))
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup<Startup>()
.UseServiceFabricIntegration(listener, ServiceFabricIntegrationOptions.None)
.Build();
}))
};
}`
An exception was thrown in the startup class, and then the service fabric would repeatedly call the method "CreateServiceInstanceListeners" and the process didn't crash. The service fabric would continue to execute this method repeatedly without stopping.
Area/Component:
Reliable services
Expected behavior
I hope the service process stops or crash after a few times retry, Is there any mechanism to stop the service if an exception is thrown? Or set the retry times, after multi times, the service will crash.
Service Fabric Runtime Version:
Azure Service Fabric SDK: 6.0.1028.9590
Azure Service Fabric: 9.0.1107.9590
Environment:
Standalone
OS: Windows 11
target framework: net472
Assignees: /cc @microsoft/service-fabric-triage
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe your workload details.
I built a .net service fabric application, it had a stateless service, I set up the service with the standard code:
An exception was thrown in the startup class, and then the service fabric would repeatedly call the method "CreateServiceInstanceListeners" and the process didn't crash. The service fabric would continue to execute this method repeatedly without stopping.
Area/Component:
Reliable services
Expected behavior
I hope the service process stops or crash after a few times retry, Is there any mechanism to stop the service if an exception is thrown? Or set the retry times, after multi times, the service will crash.
Service Fabric Runtime Version:
Azure Service Fabric SDK: 6.0.1028.9590
Azure Service Fabric: 9.0.1107.9590
Environment:
Assignees: /cc @microsoft/service-fabric-triage
The text was updated successfully, but these errors were encountered: