0.0
No commit activity in last 3 years
No release in over 3 years
When used with EXEL (https://github.com/47colborne/exel), the async command will launch a Sidekiq worker
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Project Readme

EXEL::Sidekiq

Gem Version Build Status

This gem adds Sidekiq support for EXEL's async command.

Installation

Add this line to your application's Gemfile:

gem 'exel-sidekiq'

And then execute:

$ bundle

Or install it yourself as:

$ gem install exel-sidekiq

Usage

By requiring this gem, Sidekiq support will automatically be added to EXEL. Any calls to async will enqueue a worker to run the given block. If you wish to use a queue other than default, you may specify its name in the options passed to async. The retry limit can also be set, as in the following example:

async queue: :my_queue, retry: 3 do
    process with: MyProcessor
end

You can optionally provide a string in context[:async_label] which will be passed to the Sidekiq worker. This is intended to be a human readable label that will be visible on the Sidekiq admin pages to assist in debugging and monitoring your jobs.

Contributing

  1. Fork it ( https://github.com/47colborne/exel-sidekiq )
  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 a new Pull Request