![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
celery
刚学HTML
这个作者很懒,什么都没留下…
展开
-
celery坑
celery配置中间人不起作用我在这里已经配置了中间人使用redis,可是在跑celery服务的时候,并没有使用我的配置,只需要把文件名字变成其他的就行了,这样我们的服务就起来了原创 2021-04-01 01:17:46 · 195 阅读 · 2 评论 -
Did you remember to import the module containing this task? Or maybe you‘re using relative imports?
Did you remember to import the module containing this task?Or maybe you’re using relative imports?解决方法from __future__ import absolute_importfrom celery import Celeryapp = Celery('tasks', broker='redis://localhost')# 在装饰里面加一个name参数,里面的值是当前文件的文件夹和文件的原创 2021-04-01 01:12:52 · 1856 阅读 · 0 评论