Low commit activity in last 3 years
No release in over a year
A plugin for delayed_job to schedule simple tasks. It does not need a seperate worker and reduce the memory usage.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 5.0
 Project Readme

delayed_job_schedule¶ ↑

This gem provides a schedule plugin for delayed_job. The delayed_job worker will check after each loop for schedule tasks to do.

Pro¶ ↑

  • uses less memory than multiple workers for delayed_job and a scheduler (a.e. clockwork)

Contra¶ ↑

  • you can only use time ranges

Install¶ ↑

Add delayed_job_schedule to your Gemfile:

gem 'delayed_job_schedule', git: 'https://github.com/lichtbit/delayed_job_schedule.git'

Use it in your initializer:

Delayed::Schedule.every(1.minutes) { Cache.clean_up! }
Delayed::Schedule.every(5.minutes) { Mailer.send_status }
Delayed::Schedule.every(3.hours) { Database.reimport }

Delayed::Schedule.worker_select = -> (worker) do
  worker.queues == [] || worker.queues == ['default']
end