My application has scheduled tasks that need to be run every 1 minute, 15 minutes, 1 hour, etc etc.
Jobs seem like a perfect component to do this in App Platform, but I can’t set them to run automatically on a set schedule.
I’m pretty sure I can hack around this by using a worker component that runs an infinite loop, but this seems incredibly wasteful. My scheduled tasks only take a few seconds to run, but I will be charged for 24/7 usage if I run them via a worker.
Is there a better way to achieve this? And is DO working on letting us run job components on a schedule?
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!