Skip to content

jmoses/sidekiq-sqs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sidekiq::Sqs

This is a gem that modifies Sidekiq to use Amazon's SQS as a job store. It still requires Redis for stats and such, and worker tracking.

It works currently. There's very few tests, but we've been using it in production for a while. Still, be careful

Installation

Add this line to your application's Gemfile:

gem 'sidekiq-sqs'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sidekiq-sqs

Usage

Once the gem is required, (and aws-sdk is configured) simply do:

Sidekiq::Sqs.enable!

That'll turn it all on. Nothing else should have to change.

Caveats

  • Scheduling uses SQS message timers. The amount of time you can schedule a worker must be 0 to 900 seconds (15 mins).
  • Auto-retrying to insert jobs to SQS on failure (if SQS loses it's mind for a second) doesn't work. It should, but it doesn't.
  • ?

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Monkey patches to get sidekiq to use Amazon SQS as it's job store.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages