As celery seems to be leaking Redis connections (see [1]), it seems to be best to use subprocess to check for worker readiness (it's a workaround, but the functionality is as good as using celery API directly).
The other commit in this PR is a bit unrelated - it fixes a lot of fails in tests for Pagure's lib package by making sure tasks_services.py module can actually connect to Redis (I think this bug must have been present for some time now, not sure why nobody noticed).
As celery seems to be leaking Redis connections (see [1]), it seems to be best to use subprocess to check for worker readiness (it's a workaround, but the functionality is as good as using celery API directly).
The other commit in this PR is a bit unrelated - it fixes a lot of fails in tests for Pagure's lib package by making sure
tasks_services.pymodule can actually connect to Redis (I think this bug must have been present for some time now, not sure why nobody noticed).[1] https://github.com/celery/celery/issues/4465