I’d like to try using App Platform to run some Django sites. Almost every site I’ve made requires one or more commands to be run periodically (e.g. once an hour, once a day, etc). On a VPS I’d use cron to do this, and on Heroku I’d use Heroku Scheduler (with less flexibility).
But I can’t see a way to do this on App Platform. I assume there’s something obvious I’ve missed, as it seems quite a basic feature?
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.
Hello, at this time App Platform doesn’t have support to run scheduled tasks (aside from pre/post deployment jobs).
However, if you’re willing to run Django in a container image that your own, you can run cron in tandem with Django to execute whatever management commands that you’d like.
For example:
Hope this helps!
Greg