fix:...
This commit is contained in:
@@ -29,7 +29,7 @@ type BarParams struct {
|
||||
}
|
||||
|
||||
func (s *BarProcessor) Execute(data any) (any, error) {
|
||||
log.Infof("执行 %d 次,上次进度: %d ", s.count, s.progress)
|
||||
log.Infof("count: %d ,progress: %d ", s.count, s.progress)
|
||||
s.count++
|
||||
|
||||
options := data.(cron.JobData)
|
||||
@@ -41,7 +41,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
|
||||
if err == nil {
|
||||
duration = params.Duration
|
||||
}
|
||||
log.Infof("重复 %v 任务ID %s", options.Repeat, sysJob.JobID)
|
||||
log.Infof("Repeat: %v JobID: %s", options.Repeat, sysJob.JobID)
|
||||
|
||||
// // 实现任务处理逻辑
|
||||
// i := 0
|
||||
|
||||
Reference in New Issue
Block a user