Question

How to run Django admin commands periodically?

I have a website running flawlessly on the App Platform. But I really need to be able to execute some commands every day at certain hour (python manage.py …). It would be awesome to have something like cron jobs, for what I understand this is no available.

How can I achieve my goal?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

Hello @sxv

Cron job is not supported in App Platform yet however, it’s in our roadmap. There is no ETA as of now. We had a similar discussion in our community link below where one of our engineering team has provided the workaround:

Community Discussion link

I encourage you to share your thoughts about this on our ideas page: https://ideas.digitalocean.com/

We’re constantly looking to improve all aspects of our service and welcome any other ideas or feedback you have! Sharing your thoughts there helps us to better prioritize working on the features that you feel need more attention.

Best, Dikshith

You can define a cron job for that. Read this article to know about making cron jobs - Article