
celery
攒钱买房的迪迦
这个作者很懒,什么都没留下…
展开
-
celery坑
celery配置中间人不起作用 我在这里已经配置了中间人使用redis,可是在跑celery服务的时候,并没有使用我的配置, 只需要把文件名字变成其他的就行了, 这样我们的服务就起来了原创 2021-04-01 01:17:46 · 227 阅读 · 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_import from celery import Celery app = Celery('tasks', broker='redis://localhost') # 在装饰里面加一个name参数,里面的值是当前文件的文件夹和文件的原创 2021-04-01 01:12:52 · 1966 阅读 · 0 评论