jobs: fix backwards job priorities.
Fix bug where jobs had the opposite of the intended priority. Populating saved searches had the highest priority, while processing uploads had the lowest priority. Caused by Delayed::Job and GoodJob having opposite interpretations of job priorities. In Delayed::Job, lower numbers had higher priority, while in GoodJob, higher numbers have higher priority. This was missed when migrating from Delayed::Job to GoodJob.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
# A job that regenerates a post's images and IQDB when a moderator requests it.
|
||||
class RegeneratePostJob < ApplicationJob
|
||||
queue_as :default
|
||||
queue_with_priority 20
|
||||
|
||||
def perform(post:, category:, user:)
|
||||
post.regenerate!(category, user)
|
||||
|
||||
Reference in New Issue
Block a user