#797 Move kojira's regen loop into dedicated thread
Merged by mikem. Opened by mikem.
mikem/koji kojira-regen-thread  into  master

Download 797.patch

On systems with a very large number of build tags, kojira can sometimes get bogged down crunching data and take too long to come back around to the part where it actually fires off newRepo tasks. This can keep kojira from maintaining the configured maximum number of jobs when there is a backlog.

This change untangles the various parts of updateRepos() and moves the regenRepo part into dedicated thread.

I've included a couple unit tests (kojira did not previously have any), but I should really add a few more here.

Fixes #798

3 new commits added

  • unit test for checkNeeded
  • unit test for setTagScore
  • unit test for regenLoop

:thumbsup:

Commit 0087888f fixes this pull-request

Pull-Request has been merged by mikem

Metadata