Question

How to Run Recurring Rake Tasks in Rails App on 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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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