Skip to content

Commit

Permalink
Add logging for active global lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Sep 10, 2019
1 parent 0e50c52 commit e6f855f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dkron/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ func (j *Job) GetNext() (time.Time, error) {

func (j *Job) isRunnable() bool {
if j.Agent.GlobalLock {
log.WithField("job", j.Name).
Warning("job: Skipping execution because active global lock")
return false
}

Expand Down

0 comments on commit e6f855f

Please sign in to comment.