How to Schedule Tasks on Heroku (with sidekiq-cron)

Posted on

Heroku comes with a Scheduler, which is awesome if you aren’t running a worker however if you’re already running a worker you should look into using sidekiq-cron to handled you scheduled tasks.

In this video I’ll run you though how to setup sidekiq-cron & we’ll see a job be executed.

Code for this demo: https://github.com/MikeRogers0-YouTube/DeployingToHeroku sidekiq-cron Gem: https://github.com/ondrejbartas/sidekiq-cron Heroku Getting Started Guide: https://devcenter.heroku.com/articles/getting-started-with-rails6