Skip to content

Commit

Permalink
Disable loading jobs from db from a disabled listener
Browse files Browse the repository at this point in the history
  • Loading branch information
DNK90 committed Aug 3, 2022
1 parent 345b902 commit 2dd817d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func (c *Controller) processPendingJobs() {
}
for _, job := range jobs {
listener, ok := c.listeners[job.Listener]
if !ok {
if !ok || listener.IsDisabled() {
continue
}
if job.Type == CallbackHandler && job.Method == "" {
Expand Down

0 comments on commit 2dd817d

Please sign in to comment.