Tips for Writing a Good CV / Résumé May 20, 2020
Due to COVID-19, not many companies are hiring at the moment. The company I work for therefore is in a very fortunate position to still be…
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. :)