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 }}
Repository navigation
Redis caching: Notification queue not suspended when background task queue is overloaded #2
Title: Redis caching: Notification queue not suspended when background task queue is overloaded
Description
The RedisCacheDependencyGarbageCollector does not respond to IsBackgroundTaskQueueOverloadedChanged events by suspending the notification queue processing.
Current Behavior
When the background task scheduler becomes overloaded:
Individual notifications are skipped in ProcessKeyspaceNotification (the code checks IsBackgroundTaskQueueOverloaded and logs a warning)
However, the notification queue continues receiving notifications from Redis
This can cause memory buildup as notifications pile up in the BlockingCollection
Expected Behavior
When IsBackgroundTaskQueueOverloadedChanged fires and the queue is overloaded:
RedisNotificationQueue.SuspendProcessing() should be called to pause the processing thread
When the queue recovers, ResumeProcessing() should be called
The SuspendProcessing() and ResumeProcessing() methods already exist in RedisNotificationQueue but are not wired up to the overload event.
Activity
gfraiteur commentedon Mar 25, 2026
Released in v2026.0.7.
— Claude