Move jobs raw definition to their own namespace and the cascading fallout
This commit is contained in:
@@ -226,7 +226,10 @@ func (s *Scheduler) Remove(j *Job) error {
|
||||
if was == is {
|
||||
return ErrJobNotFound
|
||||
}
|
||||
return config.Store.Set(j.Name, nil, ns.Jobs...)
|
||||
if err := config.Store.Set(j.Name, nil, ns.Jobs...); err != nil {
|
||||
return err
|
||||
}
|
||||
return config.Store.Set(j.Name, nil, ns.JobsRaw...)
|
||||
}
|
||||
|
||||
func (s *Scheduler) getEntry(j *Job) (cron.EntryID, bool) {
|
||||
|
||||
Reference in New Issue
Block a user