From ecb3341cd57ab0dd9f38b9a66d9a9617454d1c77 Mon Sep 17 00:00:00 2001 From: Sergey Odinokov Date: Fri, 5 Aug 2016 12:59:15 +0300 Subject: [PATCH] JobExpirationCheckInterval now defaults to 30 minutes With the new ExpirationManager implementation, Hangfire now uses much less queries to perform the cleanup, so we can decrease the expiration checking interval. --- src/Hangfire.SqlServer/SqlServerStorageOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hangfire.SqlServer/SqlServerStorageOptions.cs b/src/Hangfire.SqlServer/SqlServerStorageOptions.cs index 0891e829c..249a4ac6f 100644 --- a/src/Hangfire.SqlServer/SqlServerStorageOptions.cs +++ b/src/Hangfire.SqlServer/SqlServerStorageOptions.cs @@ -35,7 +35,7 @@ public SqlServerStorageOptions() #pragma warning disable 618 InvisibilityTimeout = TimeSpan.FromMinutes(30); #pragma warning restore 618 - JobExpirationCheckInterval = TimeSpan.FromHours(1); + JobExpirationCheckInterval = TimeSpan.FromMinutes(30); CountersAggregateInterval = TimeSpan.FromMinutes(5); PrepareSchemaIfNecessary = true; DashboardJobListLimit = 50000;