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:
evazion
2021-10-24 22:16:34 -05:00
parent a9088d8a87
commit 6d2ce5c8c1

View File

@@ -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)