Replies: 2 comments 1 reply
-
from celery.worker import strategy
strategy.logger.setLevel(WARNING) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
auvipy
-
I still see Task succeed messages in the log after adding this code. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Im working on a service with several workers using celery.
Im running sort of flow manager that contains lots of tasks / periodic tasks.
Im sending all logs (INFO+) to cloud logging service.
the result is that my service spams the logging service with many "task received / "task succeed" logs.
such case also results in higher expenses for the log storing.
I was trying to find a way to disable these logs
for "success" messages I was able to find out I can set trace log level to warning so it skips such messages
from celery.app import trace
trace.logger.setLevel(logging.WARNING)
but couldn't find similar solution to task received messages
does anyone know if there's a way to disable both?
it would be even better if I could configure it for specific tasks
thanks! 🙏
Beta Was this translation helpful? Give feedback.
All reactions