简体   繁体   中英

Django scheduled Tasks - Alternative to Cron or Independent Daemon

In creating scheduled tasks I've used both Cron and a specially set up daemon for django.

Cron is silly-simple, and the daemon (in my opinion) might be excessive. The daemon set up an independent Django instance.

Django itself (If I'm not mistaken) runs as a daemon anyway, correct?

I'm wondering - how do you schedule tasks within the Django environment without leaving off from standard use?

You can use Celery to run periodic tasks but depending on what are you trying to do it could be overkill.

If your use case it's simple, cron+management command it's way easier. You can use Kronos , django-cron or any of this libraries for this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM