0.01
Low commit activity in last 3 years
There's a lot of open issues
A long-lived project that still receives updates
This gem adds recurring jobs to Sidekiq. It is heavily inspired by the sidekiq-dejavu and sidetiq gems.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 5.25
~> 13.3
~> 1.0

Runtime

~> 0.3
~> 1.7
~> 0.1.4
~> 8, < 9
 Project Readme

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

# Start Redis in another terminal (or use an existing instance)
docker run --rm -p 127.0.0.1:16379:6379 redis:8-alpine

# Run the tests
bundle exec rake test

License

MIT.