From 1e1963f134c14c1e2e755fbca170d9e33fd32ee6 Mon Sep 17 00:00:00 2001 From: Earlopain Date: Tue, 2 May 2023 19:13:47 +0200 Subject: [PATCH] [Sidekiq] Rename iqdb job queue --- Procfile | 2 +- app/jobs/iqdb_remove_job.rb | 2 +- app/jobs/iqdb_update_job.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Procfile b/Procfile index 31473f11f..569a64f99 100644 --- a/Procfile +++ b/Procfile @@ -1,4 +1,4 @@ server: bin/rails server -p 9000 -b 0.0.0.0 # server: bundle exec unicorn -c config/unicorn/development.rb -jobs: SIDEKIQ_QUEUES="low_prio:1;video:1;iqdb_new:1;tags:2;default:3;high_prio:5" bundle exec sidekiq +jobs: SIDEKIQ_QUEUES="low_prio:1;video:1;iqdb:1;tags:2;default:3;high_prio:5" bundle exec sidekiq cron: run-parts /etc/periodic/daily && crond -f diff --git a/app/jobs/iqdb_remove_job.rb b/app/jobs/iqdb_remove_job.rb index 7d443702a..ce647971c 100644 --- a/app/jobs/iqdb_remove_job.rb +++ b/app/jobs/iqdb_remove_job.rb @@ -1,5 +1,5 @@ class IqdbRemoveJob < ApplicationJob - queue_as :iqdb_new + queue_as :iqdb def perform(post_id) IqdbProxy.remove_post(post_id) diff --git a/app/jobs/iqdb_update_job.rb b/app/jobs/iqdb_update_job.rb index 44d81add0..1fed4eacb 100644 --- a/app/jobs/iqdb_update_job.rb +++ b/app/jobs/iqdb_update_job.rb @@ -1,5 +1,5 @@ class IqdbUpdateJob < ApplicationJob - queue_as :iqdb_new + queue_as :iqdb def perform(post_id) post = Post.find_by id: post_id