Skip to content
Snippets Groups Projects
Verified Commit 2003cfb8 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: cant remove time scheduler #31

parent 28d98d63
Branches
Tags
No related merge requests found
......@@ -214,6 +214,8 @@ func (m *Manager) removeJobInternal(id JobID) error {
if err := scheduler.(*IntervalScheduler).Cancel(id); err != nil {
return err
}
case *TimeScheduler:
if err := scheduler.(*TimeScheduler).Cancel(id); err != nil {
default:
return ErrUnknownScheduleType
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment