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
Latch receivers immediately on ApplicationStopping to prevent processing during shutdown
Hook into IHostApplicationLifetime.ApplicationStopping so all message receivers
are latched the moment SIGTERM fires, rather than waiting for IHostedService.StopAsync
which may be delayed by other hosted services stopping first. This prevents messages
already in internal queues from being picked up after the shutdown signal.
Also reorders StopAsync to drain endpoints before releasing ownership, adds bounded
WaitForCompletionAsync calls in DurableReceiver and BufferedReceiver with configurable
DrainTimeout (default 30s), and includes GracefulShutdown/RollingRestart chaos tests.
Closes#2282
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments