Skip to content

Commit

Permalink
job/job: Move log for when task is actually being scheduled
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <a.jung@lancs.ac.uk>
  • Loading branch information
nderjung committed Dec 21, 2020
1 parent 5f3e46b commit 8764d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,6 @@ func (j *Job) Start() error {
}
}
}

log.Infof("Scheduling task run %s-%s...", task.(*Task).UUID(), nextRun.(Run).Name)
tasksInFlight.RUnlock()

// Select some core IDs for this run based on how many it requires
Expand All @@ -416,6 +414,8 @@ func (j *Job) Start() error {
goto iterator
}

log.Infof("Scheduling task run %s-%s...", task.(*Task).UUID(), nextRun.(Run).Name)

// Finally, we can dequeue the run since we are about to schedule it
nextRun, err = task.(*Task).runs.Dequeue()

Expand Down

0 comments on commit 8764d55

Please sign in to comment.