https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 46b2ba61e42caea5eb48c14ae66c075b27bea64c authored by Valentin Lorentz on 03 December 2018, 13:44:54 UTC, committed by Valentin Lorentz on 03 December 2018, 14:53:48 UTC
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.

Reviewers: #reviewers, ardumont

Reviewed By: #reviewers, ardumont

Subscribers: ardumont, swh-public-ci

Differential Revision: https://forge.softwareheritage.org/D763
2 parent s 042edee + 0f77286
History
Tip revision: 46b2ba61e42caea5eb48c14ae66c075b27bea64c authored by Valentin Lorentz on 03 December 2018, 13:44:54 UTC
Fallback for get_queue_stats() when using memory:// broker.
Tip revision: 46b2ba6
File Mode Size
bin
data
debian
docs
sql
swh
.gitignore -rw-r--r-- 102 bytes
AUTHORS -rw-r--r-- 112 bytes
LICENSE -rw-r--r-- 34.3 KB
LICENSE.Celery -rw-r--r-- 2.6 KB
MANIFEST.in -rw-r--r-- 151 bytes
Makefile -rw-r--r-- 163 bytes
README.md -rw-r--r-- 1.3 KB
pytest.ini -rw-r--r-- 30 bytes
requirements-swh.txt -rw-r--r-- 19 bytes
requirements-test.txt -rw-r--r-- 25 bytes
requirements.txt -rw-r--r-- 332 bytes
setup.py -rwxr-xr-x 2.2 KB
tox.ini -rw-r--r-- 249 bytes

README.md

back to top