Page MenuHomeSoftware Heritage

Fallback for get_queue_stats() when using memory:// broker.
ClosedPublic

Authored by vlorentz on Mon, Dec 3, 2:45 PM.

Details

Summary

When running tests, RabbitMQ is not used, so get_queue_stats()
does not work.

We did not notice this issue before because pytest skipped
importing modules that define tasks with a queue, so this
function was never actually called while running tests.

Diff Detail

Repository
rDSCH Scheduling utilities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz created this revision.Mon, Dec 3, 2:45 PM
ardumont accepted this revision.Mon, Dec 3, 3:53 PM
ardumont added a subscriber: ardumont.

Thanks.

Note: We will need to start adding tests in there (runner & listener).

This revision is now accepted and ready to land.Mon, Dec 3, 3:53 PM
This revision was automatically updated to reflect the committed changes.