From 2bdf2faac03aa0f424363799d2463d935770115d Mon Sep 17 00:00:00 2001 From: Adrien POLY Date: Tue, 9 Jul 2024 12:37:28 +0200 Subject: [PATCH] add puma solid_queue plugin and finish configuration --- config/application.rb | 3 +++ config/puma.rb | 1 + 2 files changed, 4 insertions(+) diff --git a/config/application.rb b/config/application.rb index 62e00691..b622e0f9 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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 diff --git a/config/puma.rb b/config/puma.rb index f041eb2a..53b7b8af 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -32,3 +32,4 @@ # Allow puma to be restarted by `bin/rails restart` command. plugin :tmp_restart +plugin :solid_queue