fix
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 4m27s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 4m27s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
This commit is contained in:
@@ -77,6 +77,17 @@ public static class Expand
|
||||
.WithIdentity("CategoryIconGenerationTrigger")
|
||||
.WithCronSchedule("0 0 0 * * ?") // 每24小时执行一次
|
||||
.WithDescription("每24小时扫描并为无图标分类生成SVG图标"));
|
||||
|
||||
// 配置节假日同步任务 - 每10天凌晨3点执行
|
||||
var holidaySyncJobKey = new JobKey("HolidaySyncJob");
|
||||
q.AddJob<HolidaySyncJob>(opts => opts
|
||||
.WithIdentity(holidaySyncJobKey)
|
||||
.WithDescription("节假日同步任务"));
|
||||
q.AddTrigger(opts => opts
|
||||
.ForJob(holidaySyncJobKey)
|
||||
.WithIdentity("HolidaySyncTrigger")
|
||||
.WithCronSchedule("0 0 3 */10 * ?") // 每10天凌晨3点执行
|
||||
.WithDescription("每10天同步节假日数据"));
|
||||
});
|
||||
|
||||
// 添加 Quartz Hosted Service
|
||||
|
||||
Reference in New Issue
Block a user