Module: Resque::Plugins::Heroku

Defined in:
lib/resque/plugins/heroku.rb,
lib/resque/plugins/heroku/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#after_perform_heroku(*args) ⇒ Object



7
8
9
# File 'lib/resque/plugins/heroku.rb', line 7

def after_perform_heroku(*args)
  ActiveRecord::Base.connection.disconnect!
end

#on_failure_heroku(e, *args) ⇒ Object



11
12
13
# File 'lib/resque/plugins/heroku.rb', line 11

def on_failure_heroku(e, *args)
  ActiveRecord::Base.connection.disconnect!
end