You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Remove specific job j
func (s *Scheduler) Remove(j interface{}) {
i := 0
found := false
for ; i < s.size; i++ {
if s.jobs[i].jobFunc == getFunctionName(j) {
found = true
break
}
}
if !found {
return
}
for j := (i + 1); j < s.size; j++ {
s.jobs[i] = s.jobs[j]
i++
}
s.size = s.size - 1
}
kbrezina
changed the title
Removing a job that is not registered causes a removal of the last registered job
Removing a job that is not registered causes removal of the last registered job
Jan 24, 2019
see
gocron/gocron.go
Line 468 in 6771d4b
The text was updated successfully, but these errors were encountered: