fix: align business reports and record task migration progress
This commit is contained in:
@@ -3,6 +3,7 @@ package business
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"kra/pkg/task"
|
||||
"log/slog"
|
||||
"math/big"
|
||||
"sort"
|
||||
@@ -152,6 +153,10 @@ func (uc *AlertTriggerUsecase) Detect(ctx context.Context, now time.Time) (*Aler
|
||||
if input == nil {
|
||||
return result, ErrStorage
|
||||
}
|
||||
task.Logf(ctx, "预警检测:规则=%d;候选一级渠道=%d;商务账号=%d", len(input.Rules), len(input.Channels), len(input.Accounts))
|
||||
defer func() {
|
||||
task.Logf(ctx, "预警检测结果:已检测规则=%d;跳过规则=%d;写入预警=%d", result.Rules, result.Skipped, result.Written)
|
||||
}()
|
||||
zone := time.FixedZone("Asia/Shanghai", 8*3600)
|
||||
now = now.In(zone)
|
||||
today := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, zone)
|
||||
|
||||
Reference in New Issue
Block a user