Celery Marks All Output As A Warning

Why does celery mark all output as a warning? For instance:

[2012-09-30 16:41:10,718: WARNING/MainProcess] celery@dev-maven has started. [2012-09-30 16:41:49,219: INFO/MainProcess] Got task from broker: project_reindex.reindex_updated_projects[df28cd38-7582-445b-921b-228ee7570d9f] [2012-09-30 16:41:52,761: WARNING/PoolWorker-1] Project 51144 indexed. 

How to configure it?

Update:

OS - Ubuntu 10.04

Celery 3.0.7 (Chiastic Slide)

Message broker - RabbitMQ

+5
source share
1 answer

The output from stdout and stderr redirected to the logger, and the default log level is a warning. You can set the level or disable redirection altogether using the settings worker_redirects_stdouts_level and worker_redirects_stdouts :

https://docs.celeryproject.org/en/latest/userguide/configuration.html#worker-redirect-stdouts

These settings were CELERY_REDIRECT_STDOUTS_LEVEL & CELERY_REDIRECT_STDOUTS in earlier versions.

+9
source

Source: https://habr.com/ru/post/1437071/


All Articles