From 3546fe43e356be5c39fa27fc1d1f6bff1e047889 Mon Sep 17 00:00:00 2001 From: Arnaud Levy Date: Sat, 27 Jun 2026 12:55:34 +0200 Subject: [PATCH] Test --- app/jobs/application_job.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index dbf4fb289e..8d37041334 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -10,6 +10,10 @@ class ApplicationJob < ActiveJob::Base before_enqueue :add_good_job_labels + after_perform do + ActiveRecord::Base.clear_active_connections! + end + good_job_control_concurrency_with( # Maximum number of unfinished jobs to allow with the concurrency key # Can be an Integer or Lambda/Proc that is invoked in the context of the job @@ -92,6 +96,4 @@ def prepare_arguments_for_digest(arguments) : argument.to_json } end - - end