Sidekiq::Notifications
Adds ActiveSupport/Notifications support to sidekiq.
Installation
Add this line to your application's Gemfile:
gem 'sidekiq-notifications'And then execute:
$ bundle
Or install it yourself as:
$ gem install sidekiq-notifications
Usage
Provides two events to subscribe to: app.worker.enqueue and app.worker.perform with ActiveSupport::Notifications. The payload contains a title like MyWorker#perform_async and MyWorker#perform. The payload also contains the job information directly from sidekiq.
Contributing
- Fork it ( https://github.com/lintci/sidekiq-notifications/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request