Move ActiveJob config to initializer
Some checks failed
Ruby CI / test (pull_request) Failing after 22s
Some checks failed
Ruby CI / test (pull_request) Failing after 22s
This commit is contained in:
parent
d5bc6c718e
commit
97faf0515d
3 changed files with 3 additions and 8 deletions
|
@ -72,6 +72,4 @@ Rails.application.configure do
|
|||
|
||||
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
|
||||
# config.generators.apply_rubocop_autocorrect_after_generate!
|
||||
# Use a real queuing backend for Active Job (and separate queues per environment).
|
||||
config.active_job.queue_adapter = :solid_queue
|
||||
end
|
||||
|
|
|
@ -86,10 +86,4 @@ Rails.application.configure do
|
|||
#
|
||||
# Skip DNS rebinding protection for the default health check endpoint.
|
||||
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
||||
|
||||
# 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"
|
||||
end
|
||||
|
|
3
config/initializers/active_job.rb
Normal file
3
config/initializers/active_job.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Use a real queuing backend for Active Job (and separate queues per environment).
|
||||
Rails.application.config.active_job.queue_adapter = :solid_queue
|
||||
Rails.application.config.solid_queue.connects_to = { database: { writing: :queue } }
|
Loading…
Reference in a new issue