[Sidekiq] Rename iqdb job queue

This commit is contained in:
Earlopain 2023-05-02 19:13:47 +02:00
parent ad349e6354
commit 1e1963f134
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -1,5 +1,5 @@
class IqdbRemoveJob < ApplicationJob
queue_as :iqdb_new
queue_as :iqdb
def perform(post_id)
IqdbProxy.remove_post(post_id)

View File

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