Sha256: 0d540be8903128b21a36272adfa783e61b402d91e61a8de19786d2f7bb3f4018
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 KB
Contents
= 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 http://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 (c) 2012 Ryan Sonnek. See LICENSE for details.
Version data entries
5 entries across 5 versions & 1 rubygems