Why does Celery marks all output as warning? For example:
[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 can I configure it?
Update:
OS - Ubuntu 10.04
Celery 3.0.7 (Chiastic Slide)
Message broker - RabbitMQ
Celery uses a result backend to keep track of the tasks' states. In the previous tutorial, we saw how Celery works and how to integrate it into a Django application. In this tutorial, we are going to use the RPC (RabbitMQ/AMQP) result backend to store and retrieve the states of tasks.
Celery task canvas Demonstration of a task which runs a startup task, then parallelizes multiple worker tasks, and then fires-off a reducer task.
Output from stdout
and stderr
is redirected to the logger, and the default log level is warning. You can configure the level or disable the redirection altogether using the
worker_redirects_stdouts_level
and worker_redirects_stdouts
settings:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With