saved searches: lower job priority.
Lower the priority of the populate saved search job. This is so that large numbers of saved searches don't overwhelm the job queue and prevent higher priority jobs from running.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# `search:all` or `search:<label>`.
|
||||
class PopulateSavedSearchJob < ApplicationJob
|
||||
queue_as :default
|
||||
queue_with_priority 20
|
||||
|
||||
def perform(query)
|
||||
SavedSearch.populate(query)
|
||||
|
||||
Reference in New Issue
Block a user