mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-23 00:37:21 +08:00
【新增】hangfire定时任务增加【已经完成的Job任务进行定时过期删除处理】。
This commit is contained in:
@@ -244,6 +244,10 @@ var hangfireOptions = new Hangfire.DashboardOptions
|
||||
app.UseHangfireDashboard("/job", hangfireOptions); //可以改变Dashboard的url
|
||||
HangfireDispose.HangfireService();
|
||||
|
||||
//设置hangfire定时任务过期时间
|
||||
GlobalStateHandlers.Handlers.Add(new SucceededStateExpireHandler(AppSettingsConstVars.HangFireJobExpirationTimeOut));
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user