Project

dj_sqs

0.0
No commit activity in last 3 years
No release in over 3 years
A SQS delayed job backend
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.0
~> 4.0.0.beta2
 Project Readme

Delayed_job SQS backend

This is an SQS backend for delayed_job

This is just a rough starting point for using SQS as a job queue for DJ. I recommend you vendor these files and adjust them to suit your needs

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