|
@@ -76,7 +76,7 @@ func (t *TaskServer) Start(ctx context.Context) error {
|
|
|
|
|
|
|
|
|
|
|
|
- _, err := t.scheduler.Cron("* * * * *").Do(func() {
|
|
|
+ _, err := t.scheduler.Cron("1 * * * *").Do(func() {
|
|
|
err := t.wafTask.SynchronizationTime(ctx)
|
|
|
if err != nil {
|
|
|
t.log.Error("同步到期时间失败", zap.Error(err))
|
|
@@ -86,7 +86,7 @@ func (t *TaskServer) Start(ctx context.Context) error {
|
|
|
t.log.Error("同步到期时间注册任务失败", zap.Error(err))
|
|
|
}
|
|
|
|
|
|
- _, err = t.scheduler.Cron("* * * * *").Do(func() {
|
|
|
+ _, err = t.scheduler.Cron("1 * * * *").Do(func() {
|
|
|
err := t.wafTask.StopPlan(ctx)
|
|
|
if err != nil {
|
|
|
t.log.Error("停止套餐失败", zap.Error(err))
|
|
@@ -97,7 +97,7 @@ func (t *TaskServer) Start(ctx context.Context) error {
|
|
|
}
|
|
|
|
|
|
|
|
|
- _, err = t.scheduler.Cron("* * * * *").Do(func() {
|
|
|
+ _, err = t.scheduler.Cron("1 * * * *").Do(func() {
|
|
|
err := t.wafTask.RecoverRecentPlan(ctx)
|
|
|
if err != nil {
|
|
|
t.log.Error("续费失败", zap.Error(err))
|
|
@@ -108,7 +108,7 @@ func (t *TaskServer) Start(ctx context.Context) error {
|
|
|
}
|
|
|
|
|
|
|
|
|
- _, err = t.scheduler.Cron("* * * * *").Do(func() {
|
|
|
+ _, err = t.scheduler.Cron("1 * * * *").Do(func() {
|
|
|
err := t.wafTask.CleanUpStaleRecords(ctx)
|
|
|
if err != nil {
|
|
|
t.log.Error("续费失败", zap.Error(err))
|