Basically the title - have a Django app running on the app platform and I’d like to run some basic tasks on a regular schedule. Diving into celery just for that feels like overkill so hoping there is something I can set up cronjobs for within the 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!
To accomplish scheduled tasks with your Django App running on the App Platform, Cron Jobs are not natively supported as of now.
You can check our tutorial on How To Setup a Job Scheduler on DigitalOcean App Platform
A job scheduler allows you to schedule tasks at specific times, intervals, or dates, freeing you to focus on more important work. In this tutorial, we’ll show you how to set up a job scheduler in App Platform using a Docker container that runs cron as an App Platform Worker.
Use a custom worker: By defining a custom worker component in your app specification, you can run scheduled tasks using Python libraries like schedule or APScheduler. It may have a different entrypoint for the scheduled tasks separate from your main app.
External cron services: You can use a third-party cron service to make requests to your app on scheduled intervals, triggering the tasks you want to run.
Here’s some more information on DigitalOcean App Platform. Remember to check our documentation for any updates on cron job support in the future.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.