Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1019 Bytes

README.md

File metadata and controls

47 lines (33 loc) · 1019 Bytes

Sidekiq::Tip

Build Status Coverage Status

Perform sidekiq jobs in time interval

Installation

Add this line to your application's Gemfile:

gem 'sidekiq-tip'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sidekiq-tip

Usage

class SomeJob
  include Sidekiq::Worker
  # [0, 0, 0] == [hour, min, sec]
  sidekiq_options start_at: [0, 0, 0], finish_at: [10, 0, 0]

  def perform
    # ...
  end
end

Contributing

  1. Fork it ( https://github.com/[my-github-username]/sidekiq-tip/fork )
  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