fix: job nil bug
This commit is contained in:
1 parent
afb98f5e81
commit
77bfc07826
3 files changed
+23
-6
No files matched your search
@@ -37,6 +37,10 @@ type ExecJob struct {
|
||||
func (e *ExecJob) Run() {
|
||||
startTime := time.Now()
|
||||
var obj = jobList[e.InvokeTarget]
|
||||
if obj == nil {
|
||||
global.JobLogger.Warning(" ExecJob Run job nil", e)
|
||||
return
|
||||
}
|
||||
CallExec(obj.(JobsExec))
|
||||
// 结束时间
|
||||
endTime := time.Now()
|
||||
|
||||
Reference in new issue
Block a user