danihodovic / celery-exporter

A Prometheus exporter for Celery metrics
MIT License
399 stars 87 forks source link

fix: fixups for queue length #203

Closed danihodovic closed 1 year ago

danihodovic commented 1 year ago

Better error handling to detect the transport.

if isinstance(connection.default_channel.client, Redis):

The above fails when the transport is not Redis with an AttributeError as the .client attribute is not set on the default_channel.