zoukankan      html  css  js  c++  java
  • celery起动,运行有警告


    运行命令 :  celery worker -A task_log -l info: 有如下警告

    2019-12-22 22:42:50,215: WARNING/MainProcess] /root/miniconda3/lib/python3.7/site-packages/kombu/pidbox.py:74: UserWarning: A node named celery@Linux is already using this process mailbox!

    Maybe you forgot to shutdown the other node or did not do so properly?
    Or if you meant to start multiple nodes on the same host please make sure
    you give each node a unique node name!

      warnings.warn(W_PIDBOX_IN_USE.format(node=self))
    运行脚本 有如下报错:
    [2019-12-22 22:42:57,274: ERROR/MainProcess] Received unregistered task of type 'task_log.worker'.
    The message has been ignored and discarded.

    Did you remember to import the module containing this task?
    Or maybe you're using relative imports?

    Please see
    http://docs.celeryq.org/en/latest/internals/protocol.html
    for more information.

    The full contents of the message body was:
    '[["log"], {}, {"callbacks": null, "errbacks": null, "chain": null, "chord": null}]' (82b)
    Traceback (most recent call last):
      File "/root/miniconda3/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 559, in on_task_received
        strategy = strategies[type_]
    KeyError: 'task_log.worker'
    启动程序,应该是输出三次,结果输出一次或者一次也没有输出卡在那里
    原因:运行了两次celery worker 命令
    关闭一个命令就好了




  • 相关阅读:
    Windows_10 系统封装
    leetcode-75 颜色分类
    leetcode-922 按奇偶排序数组 II
    leetcode-905 按奇偶数排序
    UVA-10827 环面上的最大子矩阵和
    leetcode918 环形最大子数组
    leetcode-85 最大矩形
    leetcode-84 柱状图中的最大矩形
    leetcode-221 最大正方形
    leetcode-713 乘积小于k的数组
  • 原文地址:https://www.cnblogs.com/baiyifengyun/p/12446498.html
Copyright © 2011-2022 走看看