Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/jobs/application_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -92,6 +96,4 @@ def prepare_arguments_for_digest(arguments)
: argument.to_json
}
end


end
Loading