No commit activity in last 3 years
No release in over 3 years
resque-exceptional provides a Resque failure backend that sends exceptions raised by jobs to getexceptional.com.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.2
>= 0
~> 1.1
~> 0.8
~> 1.8
~> 0.8

Runtime

>= 1.8
 Project Readme

resque-exceptional

resque-exceptional provides a Resque failure backend that sends exceptions raised by jobs to getexceptional.com

Build Status

Install & Quick Start

Before you jump into code, you'll need a getexceptional.com account.

To install:

$ gem install resque-exceptional

Example: Single Failure Backend

Using only the exceptional failure backend:

require 'resque'
require 'resque-exceptional'

Resque::Failure::Exceptional.configure do |config|
  config.api_key = '505f2518c41866bb0be7ba434bb2b079'
  config.use_ssl = false
end

Resque::Failure.backend = Resque::Failure::Exceptional

Example: Multiple Failure Backends

Using both the redis and exceptional failure backends:

require 'resque'
require 'resque-exceptional'

require 'resque/failure/multiple'
require 'resque/failure/redis'

Resque::Failure::Exceptional.configure do |config|
  config.api_key = '505f2518c41866bb0be7ba434bb2b079'
end

Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Exceptional]
Resque::Failure.backend = Resque::Failure::Multiple

Configuration Options

Required

  • api_key - your getexceptional.com api key.

General Options (optional)

  • deliver - set false to disable delivery of errors to exceptional API, handy for testing (default: true)

HTTP Proxy Options (optional)

  • proxy_host - proxy server ip / hostname.
  • proxy_port - proxy server port.
  • proxy_user - proxy server username.
  • proxy_pass - proxy server password.

HTTP Client Options (optional)

  • use_ssl - set true if your plan supports ssl. (default: false)
  • http_open_timeout - timeout in seconds to establish the connection. (default: 2)
  • http_read_timeout - timeout in seconds to wait for a reply. (default: 5)

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with the version. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Author

Luke Antins :: http://lividpenguin.com :: @lantins