If you use Django’s own server to run your website, you can use django-celery. But if it is a website running with uWSGI, it is best to use uWSGI's signal for scheduled tasks. Other scheduled tasks are likely to be killed by uWSGI because they occupy the thread for a long time. I have worked on a website before that needs to crawl data on a scheduled basis. After trying several solutions, I finally used uWSGI's signal, which is more stable.
You can use crontab directly. If you want to better manage the scheduled process (such as using the supervisord tool), you can use celery scheduled tasks. Here is a question: Flask configures celery scheduled tasks
For scheduled tasks, I usually use huey. I have used crontab before, but the virtual environment on the server cannot be activated using the script. I have been working on it for a long time without solving it. Then I found huey, which is actually similar to the django project. An app is installed that can implement multi-threading, periodicity and other functions.
If you use Django’s own server to run your website, you can use django-celery. But if it is a website running with uWSGI, it is best to use uWSGI's signal for scheduled tasks. Other scheduled tasks are likely to be killed by uWSGI because they occupy the thread for a long time. I have worked on a website before that needs to crawl data on a scheduled basis. After trying several solutions, I finally used uWSGI's signal, which is more stable.
django-celery can meet your requirements
You can also use independent Celery, just use Celery's beat for scheduled tasks.
You can use crontab directly. If you want to better manage the scheduled process (such as using the supervisord tool), you can use celery scheduled tasks.
Here is a question: Flask configures celery scheduled tasks
Someone made a Django module: django_crontab
For scheduled tasks, I usually use huey. I have used crontab before, but the virtual environment on the server cannot be activated using the script. I have been working on it for a long time without solving it. Then I found huey, which is actually similar to the django project. An app is installed that can implement multi-threading, periodicity and other functions.
Why not use crontab? crontab is the most stable.
You can use Scheduler, because the content is a bit more, if you need examples, you can contact me.