Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

gocardless/activejob-resque-disconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActiveJob::QueueAdapters::ResqueDisconnectAdapter

ActiveJob adapter for Resque which disconnects when the worker has finished.

By default the connection will be left open until the database times it out, which eats up database connections for no good reason.

require 'active_job/queue_adapters/resque_disconnect_adapter'

MyApp::Application.configure do
  config.active_job.queue_adapter = ActiveJob::QueueAdapters::ResqueDisconnectAdapter
end

About

ActiveJob adapter for Resque which closes the database connection when the job completes.

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages