Skip to content

Commit

Permalink
fix schedule-manager entry clean-up (#666)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Scherba <[email protected]>
  • Loading branch information
miklezzzz authored Oct 14, 2024
1 parent 99e3829 commit cd42318
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/schedule_manager/schedule_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func (sm *scheduleManager) Remove(delEntry ScheduleEntry) {
// if all ids are deleted, stop scheduled function
if len(sm.Entries[delEntry.Crontab].Ids) == 0 {
sm.cron.Remove(sm.Entries[delEntry.Crontab].EntryID)
delete(sm.Entries, delEntry.Crontab)
log.WithField("operator.component", "scheduleManager").Debugf("entry '%s' deleted", delEntry.Crontab)
}
}
Expand Down

0 comments on commit cd42318

Please sign in to comment.