Commit ff72737c authored by Kyle Clarke's avatar Kyle Clarke

Renamed public scope Every variable with private e

parent d9539a1c
Pipeline #4028891 (#) passed with stage
in 31 seconds
......@@ -109,17 +109,17 @@ func (r *runner) Stopped() bool {
// do is called via Run in a go routine.
func do(r *runner) {
safety := uint64(0)
Every := time.NewTicker(r.job.Every)
e := time.NewTicker(r.job.Every)
defer func() {
// On close set the completed time for this job runner.
r.completed = time.Now().UTC()
for range Every.C {
for range e.C {
// Check if the stop flag been set against the runner task.
if r.stop {
r.status = StatusStopped
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment