mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-09-28 04:42:12 +08:00
More Standardization
This commit is contained in:
@@ -54,8 +54,6 @@ func (t *taskLogic) InitTaskJob() {
|
||||
|
||||
func (t *taskLogic) cronHandle(data *model.TaskJob) func() {
|
||||
return func() {
|
||||
log.Logger.AddAdditionalInfo("id", data.Task.Id)
|
||||
defer log.Logger.DeleteAdditionalInfo(1)
|
||||
log.Logger.Infow("定时任务启动")
|
||||
if data.Running {
|
||||
log.Logger.Infow("任务已在运行,跳过当前任务")
|
||||
|
Reference in New Issue
Block a user