There is a return instead of continue which results in builder often continuing in next loop without picking any new work even if there is.
return
continue
Commit a64cbdc5 fixes this issue
Commit 208ecca3 fixes this issue
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/koji/issues/1840
Please continue any further discussion there.