I deployed my Django project on Digital Ocean app platform and every thing is working fantastic but there’s one problem I have one scheduled task on my website which I running through crontab (Django-crontab) but when I’m running the command python manage.py crontab
to add my cronjobs in the app platform console I am getting this:
/bin/sh 1 /usr/bin/crontab not found
I have searched to solve it everywhere but I am not able to do so. Any help from your side will be appreciated.
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.
Heya, @6474230cdcb2403bb352f0905c1560
I believe a similar question was asked before in our community which you can check here:
https://www.digitalocean.com/community/questions/how-to-regularly-run-django-management-commands-on-app-platform
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!
Heya @6474230cdcb2403bb352f0905c1560,
I don’t think you can use the crontab on App Platform that is part of the limitation of being on a managed platform.
You can suggest it as a feature though in the ideas board