Question

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

Posted March 9, 2021 183 views
Ruby on RailsDigitalOcean App Platform

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?

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
2 answers

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.