芹菜任务没有在Django Admin中显示

时间:2022-04-25 20:23:11

芹菜任务没有在Django Admin中显示

I've followed the all the docs I could find as closely as I could, even setting up an example project using Celery's official django example (celery/examples/django) but tasks still aren't showing up in django-admin:

我已经尽可能密切地关注了我能找到的所有文档,甚至使用Celery的官方django示例(celery / examples / django)设置了一个示例项目,但任务仍未显示在django-admin中:


I've left a comment on a corresponding django-celery github issue here:

我在这里留下了对相应的django-celery github问题的评论:


I've been 3 days trying to get tasks to show and to be able to use all the awesome code seen in django-celery's admin.py for things like scheduling tasks but I've had no luck. I'm running the the camera event deamon. Don't know what I'm missing. Someone in #celery IRC said django-celery is working for them so I must just be missing something. Really excited to get my isolated django-celery github project working so people can just clone it when using the module so that they don't miss anything in the checklist of little things required to get it working.

我已经有3天时间试图让任务显示出来,并能够使用django-celery的admin.py中的所有令人敬畏的代码来处理调度任务,但我没有运气。我正在运行相机事件deamon。不知道我错过了什么。 #celery IRC中有人说django-celery正在为他们工作,所以我一定要错过一些东西。真的很兴奋让我的孤立的django-celery github项目工作,所以人们可以在使用模块时克隆它,这样他们就不会错过任务所需的小东西。

Django version 1.7.1 Celery 3.1.18

Django版本1.7.1 Celery 3.1.18

Here's my ./manage.py celery -A proj worker -l info --loglevel=DEBUG and event camera output in a gist:

这是我的./manage.py celery -A proj worker -l info --loglevel = DEBUG和事件摄像头输出的要点:


Any advice is greatly appreciated. Anyone can access the ubuntu environment I'm working in via Cloud 9 here: https://ide.c9.io/mikeumus/celery-django-example If you need write access, just ask for it here first.

任何意见是极大的赞赏。任何人都可以通过Cloud 9访问我正在使用的ubuntu环境:https://ide.c9.io/mikeumus/celery-django-example如果您需要写访问权限,请先在此处请求。

Thanks, Mike

1 个解决方案

#1


1  

I have the same problem. As a workaround you can use flower that is a monitoring tool for celery. http://flower.readthedocs.io/en/latest/

我也有同样的问题。作为一种解决方法,您可以使用花卉作为芹菜的监测工具。 http://flower.readthedocs.io/en/latest/

Using flower you can see more information which is no provided for the admin site of django

使用flower,您可以看到django管理站点没有提供的更多信息

#1


1  

I have the same problem. As a workaround you can use flower that is a monitoring tool for celery. http://flower.readthedocs.io/en/latest/

我也有同样的问题。作为一种解决方法,您可以使用花卉作为芹菜的监测工具。 http://flower.readthedocs.io/en/latest/

Using flower you can see more information which is no provided for the admin site of django

使用flower,您可以看到django管理站点没有提供的更多信息