This commit is contained in:
2024-04-03 21:11:34 +08:00
parent 028fff8b6d
commit 3e2a8cc2dd
3 changed files with 11 additions and 9 deletions

View File

@@ -21,7 +21,9 @@ public class HangfirePack : BaseAppPack
.UseRedisStorage(sp.GetService<IConnectionMultiplexer>(), new RedisStorageOptions
{
Db = 5,
Prefix = "hangfire"
Prefix = "hangfire",
InvisibilityTimeout = TimeSpan.FromHours(2),
SucceededListSize = 5000,
})
.UseSerilogLogProvider();