Skip to content

Commit

Permalink
add puma solid_queue plugin and finish configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Jul 9, 2024
1 parent d2779c1 commit 2bdf2fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ class Application < Rails::Application
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")

config.active_job.queue_adapter = :solid_queue
config.solid_queue.connects_to = {database: {writing: :queue}}
end
end
1 change: 1 addition & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@

# Allow puma to be restarted by `bin/rails restart` command.
plugin :tmp_restart
plugin :solid_queue

0 comments on commit 2bdf2fa

Please sign in to comment.