forked from e621ng/e621ng
[Sidekiq] Rename iqdb job queue
This commit is contained in:
parent
ad349e6354
commit
1e1963f134
2
Procfile
2
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
|
||||
|
@ -1,5 +1,5 @@
|
||||
class IqdbRemoveJob < ApplicationJob
|
||||
queue_as :iqdb_new
|
||||
queue_as :iqdb
|
||||
|
||||
def perform(post_id)
|
||||
IqdbProxy.remove_post(post_id)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user