A single kojira thread was running both repo.autoRequests and repo.checkQueue. On some systems, the autoRequests call can take a while, resulting is slower response times for repo requests.
Rather than duplicate the thread boilerplate yet another time, I unified it, reducing quite a bit of repetitive code.
A single kojira thread was running both
repo.autoRequestsandrepo.checkQueue. On some systems, the autoRequests call can take a while, resulting is slower response times for repo requests.Rather than duplicate the thread boilerplate yet another time, I unified it, reducing quite a bit of repetitive code.
Also added a unit test and a couple minor fixes
Fixes https://pagure.io/koji/issue/4278