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
I'd like to ask how exactly ASP.NET Core UseShutdownTimeout() timeout works.
What is the shutdown order? From my observation:
First, all pending requests have to be processed and finished. After timeout, they are force cancelled
After that, ASP.NET Core starts stopping all IHostedServices with StopAsync
Does UseShutdownTimeout() apply to 1+2 steps all together?
Let's say I set shutdown timeout to 10s.
Do I get 10s timeout on pending requests + 10s timeout for StopAsync on IHostedServices, effectively 20s?
I noticed StopAsync on IHostedServices isn't launched while HTTP requests are still running.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to ask how exactly ASP.NET Core UseShutdownTimeout() timeout works.
What is the shutdown order? From my observation:
Does UseShutdownTimeout() apply to 1+2 steps all together?
Let's say I set shutdown timeout to 10s.
Do I get 10s timeout on pending requests + 10s timeout for StopAsync on IHostedServices, effectively 20s?
I noticed StopAsync on IHostedServices isn't launched while HTTP requests are still running.
Beta Was this translation helpful? Give feedback.
All reactions