Report this

What is the reason for this report?

Which is the best method for a recurring rails job in App platform?

Posted on March 9, 2021

I have a rails app with a job that run every 1 hour to extract data from one site. In a droplet I use https://github.com/javan/whenever and this create a cronjob but I do not know if I can use this in App platform. I searched in components (workers, job and services) but non of this have the ability to run scheduled (every 1 hour or other options). Also I readed the docs but nothing.

My question is how can I do this in App platform?



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!

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.

Did you find how to set your cronjobs? I am facing the same issue. I am using the whenever gem, but in the deploy of my RoR app on digitalocean, I did not find a way to set crontab, which I think is required to run this.

Use Clockwork on a worker component.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.