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
{{ message }}
This repository was archived by the owner on Mar 21, 2022. It is now read-only.
In the Kubernetes hosting guide, it suggests setting the environment variable DOTNET_SHUTDOWNTIMEOUTSECONDS to 120. This environment variable does not set the Host shutdown timeout, and it is not respected. This value should be set at in the application code via siloBuilder.Configure<HostOptions>(options => options.ShutdownTimeout = TimeSpan.FromMinutes(2)); in the UseOrleans call.
In the Kubernetes hosting guide, it suggests setting the environment variable
DOTNET_SHUTDOWNTIMEOUTSECONDSto 120. This environment variable does not set the Host shutdown timeout, and it is not respected. This value should be set at in the application code viasiloBuilder.Configure<HostOptions>(options => options.ShutdownTimeout = TimeSpan.FromMinutes(2));in theUseOrleanscall.The PR that makes this respected in dotnet core, dotnet/runtime#44080 is not actually merged into a released branch - see 5.0.6 HostOptions.cs.
I'm happy to fix this myself, but I'm not sure the best way to say "make sure your shutdown timeout is set right" in the context of Kubernetes.