Delayed_job SQS backend

This is an SQS backend for delayed_job

Getting Started

Installation

Add the gems to your Gemfile:

gem 'delayed_job'
gem 'dj_sqs'

Usage

That's it. Use delayed_job as normal.

Example:

class User
  def background_stuff
    puts "I run in the background"
  end
end

Then in one of your controllers:

user = User.new
user.delay.background_stuff

Start worker process

rake jobs:work

That will start pulling jobs off the queue and processing them.

License

MIT: http://neutroncreations.mit-license.org/2008