Question

How to Run Recurring Rake Tasks in Rails App on App Platform

Posted August 17, 2021 90 views
Ruby on RailsDigitalOcean App Platform

I am really interested in moving a Rails app to the App Platform. This app is currently running on a dedicated droplet and has two rake tasks that are executed daily via cron. I was wondering if anyone has run into something similar? Any way to schedule recurring rake tasks on the App Platform?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hey there!

We don’t currently support cron jobs within App Platform but it is on the road map. One option as a workaround would be to setup a worker with Sidekiq with Sidekiq-cron to run those rake tasks. You could also technically create a Dockerfile that installs cron and configure it to run those rake tasks against your app, but that may be more difficult then using Sidekiq.

Hope that helps!
Nate