mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-10 22:02:09 +08:00
[优化]
This commit is contained in:
@@ -6,8 +6,8 @@ import (
|
||||
logEntity "pandax/apps/job/entity"
|
||||
"pandax/apps/job/services"
|
||||
logServices "pandax/apps/job/services"
|
||||
"pandax/kit/utils"
|
||||
"pandax/pkg/global"
|
||||
"pandax/pkg/global/model"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -52,7 +52,7 @@ type ExecJob struct {
|
||||
func (e *ExecJob) Run() {
|
||||
startTime := time.Now()
|
||||
jobLog := logEntity.JobLog{Name: e.Name, EntryId: e.EntryId, TargetInvoke: e.InvokeTarget, Status: "0"}
|
||||
jobLog.Id = model.GenerateID()
|
||||
jobLog.Id = utils.GenerateID()
|
||||
jobLog.OrgId = e.OrgId
|
||||
jobLog.Owner = e.Owner
|
||||
var obj = jobList[e.InvokeTarget]
|
||||
|
||||
Reference in New Issue
Block a user