报错内容:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
[2019-02-22 22:24:47,985: INFO/Beat] Writing entries (0)... [2019-02-22 22:25:34,936: INFO/Beat] Scheduler: Sending due task test (tasks.tasks.cmd_run) [2019-02-22 22:25:34,941: ERROR/MainProcess] Unrecoverable error: AttributeError("'str' object has no attribute 'items'",) Traceback (most recent call last): File "/home/py3/lib/python3.6/site-packages/celery/worker/__init__.py", line 206, in start self.blueprint.start(self) File "/home/py3/lib/python3.6/site-packages/celery/bootsteps.py", line 123, in start step.start(parent) File "/home/py3/lib/python3.6/site-packages/celery/bootsteps.py", line 374, in start return self.obj.start() File "/home/py3/lib/python3.6/site-packages/celery/worker/consumer.py", line 280, in start blueprint.start(self) File "/home/py3/lib/python3.6/site-packages/celery/bootsteps.py", line 123, in start step.start(parent) File "/home/py3/lib/python3.6/site-packages/celery/worker/consumer.py", line 884, in start c.loop(*c.loop_args()) File "/home/py3/lib/python3.6/site-packages/celery/worker/loops.py", line 76, in asynloop next(loop) File "/home/py3/lib/python3.6/site-packages/kombu/async/hub.py", line 340, in create_loop cb(*cbargs) File "/home/py3/lib/python3.6/site-packages/kombu/transport/redis.py", line 1019, in on_readable self._callbacks[queue](message) File "/home/py3/lib/python3.6/site-packages/kombu/transport/virtual/__init__.py", line 534, in _callback self.qos.append(message, message.delivery_tag) File "/home/py3/lib/python3.6/site-packages/kombu/transport/redis.py", line 146, in append pipe.zadd(self.unacked_index_key, delivery_tag, time()) \ File "/home/py3/lib/python3.6/site-packages/redis/client.py", line 2320, in zadd for pair in iteritems(mapping): File "/home/py3/lib/python3.6/site-packages/redis/_compat.py", line 109, in iteritems return iter(x.items()) AttributeError: 'str' object has no attribute 'items' |
pip list redis
>redis (3.2.0)
安装:pip install redis==2.10.6
后解决。
admin后台参数格式:
The arguments and keyword arguments must use double quotes.
So if you are specifying arguments, it should be like:
1 |
<span class="pun">[</span><span class="str">"aa"</span><span class="pun">,</span> <span class="str">"11"</span><span class="pun">]</span> |
If you are specifying keyword arguments, it should be like this:
1 |
<span class="pun">{</span><span class="str">"abc"</span><span class="pun">:</span> <span class="str">"a"</span><span class="pun">,</span> <span class="str">"xyz"</span><span class="pun">:</span> <span class="str">"1"</span><span class="pun">}</span> |