Skip to content

Commit

Permalink
Try 15 second buffer for timer drift
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Mar 20, 2024
1 parent 01c723b commit 0ea6061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Foundatio/Queues/InMemoryQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0ea6061

Please sign in to comment.