Socket
Book a DemoInstallSign in
Socket

resque-heroku

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resque-heroku

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

= Overview

Handle db connection and disconnection during forking of resque jobs on Heroku cedar stack.

Fixes the following postgres log errors...

PGError: server closed the connection unexpectedly

And

LOG: could not receive data from client: Connection reset by peer LOG: unexpected EOF on client connection

This is not an official Heroku gem.

= Usage

Install the gem in your Gemfile

gem 'resque-heroku'

Include Resque::Heroku in your job classes

require 'resque/plugins/heroku'

class Job extend Resque::Plugins::Heroku

def self.perform
  # do stuff
end

end

Load resque-heroku tasks from your Rakefile

require 'resque/plugins/heroku/tasks'

Now rake jobs:work is available.

FAQs

Package last updated on 20 Jul 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.