Skip to content

Commit

Permalink
修正错误
Browse files Browse the repository at this point in the history
  • Loading branch information
lisijie committed Mar 21, 2016
1 parent ddd9747 commit fb01a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/jobs/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type Job struct {
name string // 任务名称
task *models.Task // 任务对象
runFunc func(time.Duration) (string, string, error, bool) // 执行函数
status int // 任务状态,1表示正在执行中
status int // 任务状态,大于0表示正在执行中
Concurrent bool // 同一个任务是否允许并行执行
}

Expand Down Expand Up @@ -96,7 +96,7 @@ func (j *Job) GetLogId() int64 {

func (j *Job) Run() {
if !j.Concurrent && j.status > 0 {
beego.Debug(fmt.Sprintf("任务[%d]上一次执行尚未结束,本次被忽略。", j.id))
beego.Warn(fmt.Sprintf("任务[%d]上一次执行尚未结束,本次被忽略。", j.id))
return
}

Expand Down

0 comments on commit fb01a7d

Please sign in to comment.