Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/musicglue/sidekiq-isochronal
Periodic jobs for Sidekiq
https://github.com/musicglue/sidekiq-isochronal
Last synced: 1 day ago
JSON representation
Periodic jobs for Sidekiq
- Host: GitHub
- URL: https://github.com/musicglue/sidekiq-isochronal
- Owner: musicglue
- License: mit
- Created: 2013-01-08T09:40:05.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-08T19:02:33.000Z (almost 12 years ago)
- Last Synced: 2024-04-14T22:29:00.799Z (7 months ago)
- Language: Ruby
- Size: 129 KB
- Stars: 4
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Sidekiq::Isochronal
Sidekiq::Isochronal gives you a sophisticated scheduling facility for Sidekiq jobs. Or, it will do.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'sidekiq-isochronal', github: 'musicglue/sidekiq-isochronal'
```## Usage
Once it is in your ```Gemfile``` then you have access to a new ```.periodicly``` method in your workers.
To use this (and please be aware, this is a WIP gem - this API will change, I don't suggest you use it!), you can do the following:
```ruby
class Worker
include Sidekiq::Worker
periodicly every: 5.seconds
def perform
puts "Hello!"
end
end
```Then it'll batter on, doing this over and again every 5 seconds.
## Contributing
1. Fork it
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 new Pull Request