即使django应用程序,Celerybeat也无法识别新模型

时间:2013-12-06 13:35:16

标签: django celery

启动celerybeat时出现以下错误:

Restarting celery periodic task scheduler
Stopping celerybeat... NOT RUNNING
Starting celerybeat...
Error: One or more models did not validate:
collections.collection: 'language' has a relation with model <class 'languages.models.Language'>, which has either not been installed or is abstract.
collections.translation: 'language' has a relation with model <class 'languages.models.Language'>, which has either not been installed or is abstract.

但是模型语言肯定被添加到我的django设置中,uwsgi和芹菜启动很好,除了celerybeat之外的所有其他工作都应该如此。

就像celerybeat工作的旧设置文件一样,但这不可能或不是吗?我最近也移动了我的设置文件。

1 个答案:

答案 0 :(得分:0)

发现问题。我之前移动了我的设置文件,但没有在celery设置文件中更改它。所以解决方案是找到文件:

celeryd 
celerybeat
in etc/default/ 

并更改设置文件移动到的路径。

sudo nano celeryd

并编辑