Skip to content

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

Notifications You must be signed in to change notification settings

isabella232/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

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%