Upgrade Solid Queue (#31)
Two step upgrade; migrations combined since zero downtime not relevant. Reviewed-on: #31
This commit is contained in:
parent
c64550785e
commit
4cbe7cfe37
9 changed files with 194 additions and 25 deletions
|
@ -70,6 +70,8 @@ Rails.application.configure do
|
|||
|
||||
# Use a real queuing backend for Active Job (and separate queues per environment).
|
||||
config.active_job.queue_adapter = :solid_queue
|
||||
config.solid_queue.connects_to = { database: { writing: :queue } }
|
||||
|
||||
# config.active_job.queue_name_prefix = "family_budget_production"
|
||||
|
||||
# Disable caching for Action Mailer templates even if Action Controller
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
# default: &default
|
||||
# dispatchers:
|
||||
# - polling_interval: 1
|
||||
# batch_size: 500
|
||||
# workers:
|
||||
# - queues: "*"
|
||||
# threads: 3
|
||||
# processes: 1
|
||||
# polling_interval: 0.1
|
||||
#
|
||||
# development:
|
||||
# <<: *default
|
||||
#
|
||||
# test:
|
||||
# <<: *default
|
||||
#
|
||||
# production:
|
||||
# <<: *default
|
||||
default: &default
|
||||
dispatchers:
|
||||
- polling_interval: 1
|
||||
batch_size: 500
|
||||
workers:
|
||||
- queues: "*"
|
||||
threads: 3
|
||||
processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %>
|
||||
polling_interval: 0.1
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
|
||||
test:
|
||||
<<: *default
|
||||
|
||||
production:
|
||||
<<: *default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue