danihodovic / celery-exporter

A Prometheus exporter for Celery metrics
MIT License
422 stars 92 forks source link

Add tests for celery_task_sent_total #122

Closed allburov closed 2 years ago

allburov commented 2 years ago

Add tests for celery_task_sent_total

If you're working with async test - just add more sleep, usually it helps :D I think there's a problem with daemon - it threading.Thread.start waits until the thread is ready, not when the app is healthy and connected to a broker - so we missed task-sent events.

Fixes https://github.com/danihodovic/celery-exporter/issues/121

danihodovic commented 2 years ago

Aleksey the ninja :clap: