From 0ea6061c154f266d49ae4bf850fb2d5b212d875d Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Wed, 20 Mar 2024 15:19:39 -0500 Subject: [PATCH] Try 15 second buffer for timer drift --- src/Foundatio/Queues/InMemoryQueue.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Foundatio/Queues/InMemoryQueue.cs b/src/Foundatio/Queues/InMemoryQueue.cs index 3b986173..a73dc490 100644 --- a/src/Foundatio/Queues/InMemoryQueue.cs +++ b/src/Foundatio/Queues/InMemoryQueue.cs @@ -394,7 +394,7 @@ public override Task DeleteQueueAsync() // Add a tiny buffer just in case the schedule next timer fires early. // The system clock typically has a resolution of 10-15 milliseconds, so timers cannot be more accurate than this resolution. - return minAbandonAt.SafeAdd(TimeSpan.FromMilliseconds(10)); + return minAbandonAt.SafeAdd(TimeSpan.FromMilliseconds(15)); } public override void Dispose()