fix 增加心跳任务

This commit is contained in:
2024-02-23 19:15:59 +08:00
parent ae8b48a782
commit a0e9583229
5 changed files with 56 additions and 65 deletions

View File

@@ -41,5 +41,11 @@ public class JobPack : BaseAppPack
{
TimeZone = TimeZoneInfo.Local
});
//心跳
RecurringJob.AddOrUpdate<HeartbeatJob>("Heartbeat", s => s.RunAsync(), "10 * * * * ?", new RecurringJobOptions
{
TimeZone = TimeZoneInfo.Local
});
}
}