首页 > 其他分享 >celery起动警告

celery起动警告

时间:2023-06-08 22:36:33浏览次数:22  
标签:01 06 07 08 startup 起动 celery 警告

celery起动报下列警告

[2023-06-08 01:07:11,671: WARNING/MainProcess] D:\program\ANACONDA3\envs\medical\lib\site-packages\celery\worker\consumer\consumer.py:498: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
whether broker connection retries are made during startup in Celery 6.0 and above.
If you wish to retain the existing behavior for retrying connections on startup,
you should set broker_connection_retry_on_startup to True.
  warnings.warn(


[2023-06-08 01:07:11,714: INFO/MainProcess] Connected to amqp://ubuntu:**@101.42.41.201:5672//
[2023-06-08 01:07:11,715: WARNING/MainProcess] D:\program\ANACONDA3\envs\medical\lib\site-packages\celery\worker\consumer\consumer.py:498: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
whether broker connection retries are made during startup in Celery 6.0 and above.
If you wish to retain the existing behavior for retrying connections on startup,
you should set broker_connection_retry_on_startup to True.
  warnings.warn(


[2023-06-08 01:07:11,754: INFO/MainProcess] mingle: searching for neighbors
[2023-06-08 01:07:12,905: INFO/MainProcess] mingle: all alone
[2023-06-08 01:07:12,944: WARNING/MainProcess] D:\program\ANACONDA3\envs\medical\lib\site-packages\celery\worker\consumer\consumer.py:498: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
whether broker connection retries are made during startup in Celery 6.0 and above.
If you wish to retain the existing behavior for retrying connections on startup,
you should set broker_connection_retry_on_startup to True.
  warnings.warn(


[2023-06-08 01:07:12,989: INFO/MainProcess] pidbox: Connected to amqp://ubuntu:**@101.42.41.201:5672//.
[2023-06-08 01:07:13,016: INFO/MainProcess] celery@LAPTOP-HU661FE2 ready.
[2023-06-08 01:07:13,018: WARNING/MainProcess] D:\program\ANACONDA3\envs\medical\lib\site-packages\kombu\pidbox.py:72: UserWarning: A node named celery@LAPTOP-HU661FE2 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))

解决方法:

  • 第一个警告在settings文件中设置
CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True
  • 第二个警告的解决方法:
    • 在队列中把报警告的队列删除,重启后就不警告了
    • 在起动时给每个worker起个名字
      celery -A central_console_django worker -l info --concurrency=1 -n worker1@%h -P eventlet


来自为知笔记(Wiz)

标签:01,06,07,08,startup,起动,celery,警告
From: https://www.cnblogs.com/baiyifengyun/p/17467861.html

相关文章

  • Celery with FastAPI and TortoiseORM
    APIserverusing:fastapi+tortoise-orm+postgresql+redis+supervisor+nginxTherearesomeperiodtasksandasynctasksthatwillrunincelery+rabbitmqDemoinit.pyfrom.celeryimportappascelery_app#NOQA__all_=("celery_app",)celery......
  • 8.12 压制警告 @SuppressWarning
    classChannel{@Deprecated//老系统继续用,新系统不要用了---编译会有提示,但执行成功;publicvoidconnect(){System.out.println("*****Channel******");}publicStringconnection(){return"获取了xxx通道信息.";}}public......
  • Celery
    Celery1、简介Celery是一个python第三方模块,是一个功能完备即插即用的分布式异步任务队列框架。它适用于异步处理问题,当大批量发送邮件、或者大文件上传,批图图像处理等等一些比较耗时的操作,我们可将其异步执行,解决了项目程序在执行过程中因为耗时任务而形成阻塞,导致出现请求......
  • 公司裁员日常的骚操作和警告
    如果想自己在裁员的时候是第一个知道的,并且打一些有准备的之战的话,下面的雷区一定要认识到。这些雷区通常能够给你提供一些警告,因为本次公司裁员真的属于教科书级别的,以前都没有太当回事情,反正也抱着无所谓的心态去的,很遗憾上面的内容都一一验证了。裁员对被裁的员工当然是有影......
  • Celery框架
    Celery框架1.什么是celerycelery是一个简答,灵活且可靠的,处理大量消息的分布式系统,专注于实时处理的异步任务队列,同时也支持任务调度.这里面提到了一个概念:分布式系统一个系统应用(网站),会有相关组件(web服务器,web应用,数据库,消息中间件),将它们架构在不同......
  • celery笔记三之task和task的调用
    本文首发于公众号:Hunter后端原文链接:celery笔记三之task和task的调用这一篇笔记介绍task和task的调用。以下是本篇笔记目录:基础的task定义方式日志处理任务重试忽略任务运行结果task的调用1、基础的task定义方式前面两篇笔记中介绍了最简单的定义方式,使用@......
  • celery笔记一之celery介绍、启动和运行结果跟踪
    本文首发于公众号:Hunter后端原文链接:celery笔记一之celery介绍、启动和运行结果跟踪本篇笔记内容如下:celery介绍celery准备celery启动和异步任务的运行运行结果跟踪1、celery介绍celery大致有两种应用场景,一种是异步任务,一种是定时任务。比如说在一个接口请求中,......
  • bash: 警告:setlocale: LC_TIME: 无法改变区域选项 (zh_CN.UTF-8)
    使用ssh远程登陆centos,出现如下告警信息:bash:警告:setlocale:LC_TIME:无法改变区域选项(zh_CN.UTF-8)原因分析:系统已经设置了默认地区_语言.字符集为zh_CN.UTF-8,但是在系统中没有定义对应的locale文件,所以只需要手动生成这个locale文件即可!解决办法:1)#vim/etc/environment......
  • kettle carte 警告 ssl
    如下报错2023/05/2610:03:40WARN:EstablishingSSLconncervgr'sidentityverificationisnotrecommended.AccordingtomyySQL5.5.45+,5.6.26+and5.7.6+requirementsSSLconnectionmustbeestablishedbydefaultifexplicitoptionisn'tset.Forco......
  • 解决vue3自动引入element-plus后eslint警告
    配置vue.config.js......module.exports=defineConfig({......configureWebpack:{plugins:[AutoImport({resolvers:[ElementPlusResolver()],eslintrc:{enabled:true,filepath:"./.eslintrc-auto......