2016-10-13 22 views
1

文檔說,django-background-tasks indefinite run

在Django後臺任務中,所有任務都是作爲函數(或任何其他可調用的)來實現的。

有兩個部分使用的後臺任務:

creating the task functions and registering them with the scheduler 
setup a cron task (or long running process) to execute the tasks 

看來是沒有辦法無限期和定期運行Django的後臺任務,是正確的?

+0

爲什麼不使用更成熟的包如:http://www.celeryproject.org? – Edvinauskas

+1

看看這個鏈接。 https://pypi.python.org/pypi/django-background-tasks –

回答