Seven years ago in 2012 I spoke at RubyConf China 2012. It was a technical talk on how to become a better developer, if you're interested…
I was seeking for a lightweight, easy to use solution for queueing tasks, ‘delayed_job’ fits the bill almost perfectly. ;)
One thing we needed to do for a Rails 2 project at Envato, was to queue the tasks and to run them one after another, at a set interval. 'delayed_job’ unfortunately doesn’t come with this feature.
So, instead of searching for more complicated solutions or reinventing the wheels, Imade a couple of commits to my fork to add this functionality as well as to fix some rails 3 compatibility issues.
Now you can simply add the following line to your
config/initializers/delayed_job_config.rb file to have the tasks run at 1 minute interval.
Delayed::Worker.run_interval = 60
A pull request has been issued, hopefully it’ll come as a standard feature soon. :)