parent
14571a8dc2
commit
c23f58a6df
10 changed files with 269 additions and 2 deletions
|
@ -50,6 +50,8 @@ Rails.application.configure do
|
|||
# Highlight code that triggered database queries in logs.
|
||||
config.active_record.verbose_query_logs = true
|
||||
|
||||
# Use a real queuing backend for Active Job (and separate queues per environment).
|
||||
config.active_job.queue_adapter = :solid_queue
|
||||
# Highlight code that enqueued background job in logs.
|
||||
config.active_job.verbose_enqueue_logs = true
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ Rails.application.configure do
|
|||
# config.cache_store = :mem_cache_store
|
||||
|
||||
# Use a real queuing backend for Active Job (and separate queues per environment).
|
||||
# config.active_job.queue_adapter = :resque
|
||||
config.active_job.queue_adapter = :solid_queue
|
||||
# config.active_job.queue_name_prefix = "family_budget_production"
|
||||
|
||||
config.action_mailer.perform_caching = false
|
||||
|
|
|
@ -49,6 +49,7 @@ port ENV.fetch("PORT", 3000)
|
|||
|
||||
# Allow puma to be restarted by `bin/rails restart` command.
|
||||
plugin :tmp_restart
|
||||
plugin :solid_queue
|
||||
|
||||
# Only use a pidfile when requested
|
||||
pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
|
||||
|
|
18
config/solid_queue.yml
Normal file
18
config/solid_queue.yml
Normal file
|
@ -0,0 +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
|
Loading…
Add table
Add a link
Reference in a new issue