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:
evazion
2022-11-30 17:29:30 -06:00
parent 7d0d74a0f0
commit a07e6667b4
7 changed files with 5 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
# frozen_string_literal: true
class ProcessUploadJob < ApplicationJob
queue_with_priority -1
queue_with_priority 30
def perform(upload)
upload.process_upload!