{"repo":"bibendi/schked","free":true,"listed":false,"github":"https://github.com/bibendi/schked","clone":"git clone https://github.com/bibendi/schked.git","description":"Framework agnostic scheduler to run recurring jobs.","language":"Shell","stars":137,"topics":["ruby","scheduler","gem","rufus","rails","recurring-jobs","schedule"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Schked Framework agnostic Rufus-scheduler wrapper to run recurring jobs. Installation Add this line to your application's Gemfile: And then execute: Or install it yourself as: Supported Ruby and Rails versions Schked requires Ruby 2.7+ . The test matrix covers Ruby 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, and 4.0 . Rails integration tests run on every Ruby; Rails 8 is only included on Ruby 3.2+ . Usage Ruby on Rails .schked config/schedule.rb If you have a Rails engine with own schedule: engine-path/lib/foo/engine.rb And run Schked: To show schedule: Duplicate scheduling When you deploy your schedule to production, you want to start new instance before you shut down the current. And you don't want simultaneous working of both. To achieve a seamless transition, Schked is using Redis for locks. You can configure Redis client as the following: Callbacks Also, you can define callbacks for errors handling: config/initializers/schked.rb There are :before start , :after finish and :around job callbacks as well. Warning: :before start and :after finish callbacks are executed in the scheduler thread, not in the work threads (the threads where the job execution really happens). :around job callback is executed in the job's thread. Logging By default Schked writes logs into stdout. In Rails environment Schked is using application logger. You can change it like this: config/initializers/schked.rb Liveness probe Schked can expose a small HTTP endpoint for Kubernetes liveness probes. It is disabled b","default_branch":null,"files":null,"tree":[],"storefront":"/r/bibendi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bibendi/schked/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}