fix: job nil bug

This commit is contained in:
zhangwenjian committed 2020-08-18 00:03:02 +08:00
1 parent afb98f5e81
commit 77bfc07826
3 files changed
+23 -6

No files matched your search

+4
View File
@@ -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()