优化本地运行的定时任务日志打印

This commit is contained in:
Yun
2025-09-28 19:49:23 +08:00
parent 16a392a266
commit e14305f66c
2 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import (
type Options struct {
logger logger.Logger
location *time.Location
timeout time.Duration
timeout time.Duration // 任务最长执行时间
usePriority bool
priorityVal int64
batchSize int
@@ -20,7 +20,7 @@ func defaultOptions() Options {
return Options{
logger: logger.NewLogger(),
location: time.Local,
timeout: time.Hour,
timeout: time.Hour, //
usePriority: false,
priorityVal: 0,
batchSize: 100,