Easy cron jobs with Rails
In our app we use Sidekiq for async operations, like sending email and etc. However, some tasks has to be done regularly and might take a lot of time to accomplish. For those ones we use gem clockwork in very simply way. Config file is pretty straightforward, like:
This let us keep tasks separate from config.
Task looks like this:
I found this way is the best possible to solve cron jobs organising. No need to configure it separately on server/Heroku panel, very easy and loose coupled code to maintain.