This commit is contained in:
panda
2024-06-06 20:36:50 +08:00
parent 14c5b453b6
commit 41b61ebf1e
19 changed files with 41 additions and 288 deletions

View File

@@ -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]