Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Backgrounded handler for enqueing jobs into resque
Ruby
Tag: v2.0.0.rc3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.rvmrc
Gemfile
LICENSE
README.rdoc
Rakefile
backgrounded.gemspec

README.rdoc

Backgrounded

The cleanest way to integrate background processing into your application.

Backgrounded provides a thin wrapper around any background processing framework that implements the Backgrounded handler API which makes it trivial to swap out processing frameworks with no impact to your code.

This library is an extension which add support for the Resque job processing framework see github.com/defunkt/resque/

Features

  • execute class or instance level methods within resque background workers

  • supports enqueing jobs into custom queues

Installation

Bundler Gemfile configuration

gem 'backgrounded-resque'

Backgrounded Configuration

# config/initializers/backgrounded.rb
require 'backgrounded/handler/resque_handler'
Backgrounded.handler = Backgrounded::Handler::ResqueHandler.new

Usage

user = User.new

# perform work on the default backgrounded queue
user.backgrounded.do_something

# perform work on a custom queue
user.backgrounded(:queue => 'custom').do_something_else

Copyright

Copyright © 2012 Ryan Sonnek. See LICENSE for details.

Something went wrong with that request. Please try again.