celery
Leo062701
这个作者很懒,什么都没留下…
展开
-
tasks, accept, hostname = _loc ValueError: not enough values to unpack (expected 3, got 0)
(1)celery worker -A projname --pool=solo -l info(2)pip install eventletcelery worker -A projname -l info -P eventletThis works onwindow 10 + celery 4.1 + python 3原创 2019-02-13 23:03:06 · 1070 阅读 · 0 评论 -
django+celery错误记录
1、win10中版本不匹配,会出现类似module不存在的问题,解决如下:pip install celery[redis]2、win10中ValueError: not enough values to unpack (expected 3, got 0)解决方法:安装eventlet,pip install eventlet启动worker:celery -A <m...原创 2019-05-27 22:20:21 · 303 阅读 · 0 评论 -
django+celery定时任务
1、安装django-celery-beat2、windows下安装redisserver,win+r启动redisserver:redis-serverredis.windows.conf3、在app/tasks.py中添加定时方法from celery import shared_task@shared_taskdef test_beat(x, y): pr...原创 2019-05-27 22:53:36 · 3156 阅读 · 0 评论