disable schedules filter now also stops running schedules
This commit is contained in:
parent
384ef6ebfc
commit
45a7738200
1 changed files with 7 additions and 0 deletions
|
@ -1423,6 +1423,13 @@ func getFilterResultDisableSchedules(filter *Filter, web *Web, debug bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
web.db.Model(&Filter{}).Where("watch_id = ? AND type = 'cron'", filter.WatchID).Update("Var2", "no")
|
web.db.Model(&Filter{}).Where("watch_id = ? AND type = 'cron'", filter.WatchID).Update("Var2", "no")
|
||||||
|
|
||||||
|
entryID, exist := web.cronWatch[filter.ID]
|
||||||
|
if !exist {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
web.cron.Remove(entryID)
|
||||||
|
delete(web.cronWatch, filter.ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// getFilterResultEcho is a debug filter type, used to bootstrap some tests
|
// getFilterResultEcho is a debug filter type, used to bootstrap some tests
|
||||||
|
|
Loading…
Add table
Reference in a new issue