mirror of https://github.com/portainer/portainer
fix(scheduler): remove jobs that won't be used anymore BE-11045 (#12058)
parent
3b5ce1b053
commit
560a1a00ca
|
@ -84,6 +84,7 @@ func (s *Scheduler) StopJob(jobID string) error {
|
|||
s.mu.Lock()
|
||||
if cancel, ok := s.activeJobs[entryID]; ok {
|
||||
cancel()
|
||||
delete(s.activeJobs, entryID)
|
||||
}
|
||||
s.mu.Unlock()
|
||||
|
||||
|
|
Loading…
Reference in New Issue