feat(续期): 启用定时静默续期与失败告警
默认每四小时执行 API Cookie 续期,账号间错峰一分钟;记录全部续期结果,并在同一账号连续三次失败时发送续期告警。
This commit is contained in:
1 parent
090802e25d
commit
cef2ca92c4
4 files changed
+98
-10
No files matched your search
+1
-1
@@ -161,7 +161,7 @@ func main() {
|
||||
logger.Error("启动账号引擎失败", "err", err)
|
||||
}
|
||||
go automation.NewScheduler(autoCenter).Run(ctx)
|
||||
go renewal.NewScheduler(store, mgr, ap, logger).Run(ctx)
|
||||
go renewal.NewScheduler(store, mgr, ap, logger, notifier).Run(ctx)
|
||||
|
||||
// 3) HTTP 服务。
|
||||
srv := server.New(store, mgr, *secure, *webDir, *addr, logger, autoCenter, notifier)
|
||||
|
||||
Reference in new issue
Block a user