Skip to content

projectivetech/sidekiq-repeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sidekiq::Repeat

Another recurrent job scheduler for Sidekiq. Clockless.

Credits

This gem takes the clockless scheduling approach of (and a lot of code from) Sidekiq::Dejavu by Felix Bünemann and adapts it to the in-code configuration style of Sidetiq by Tobias Svensson. Thanks to both for their great gems.

Usage

cron-style recurrence notation

require 'sidekiq'
require 'sidekiq-repeat'

class TestWorker
  include Sidekiq::Worker
  include Sidekiq::Repeat::Repeatable

  # Every Sunday at 3AM.
  repeat { '0 3 * * 0' }

  def perform
  end
end

Sidetiq/ice_cube-style recurrence notation

Check the code for documentation.

[...]
  # Every other hour.
  repeat { hourly(2) }
[...]

Development

# setup
bundle install

# Run the tests
bundle exec rake test

License

MIT.

About

Sidekiq::Repeat is a clockless recurring job system for Sidekiq.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages