Learn more about these different git repos.
Other Git URLs
027536d
@@ -309,10 +309,19 @@
lock.acquire()
def release_locks(self):
+ # Only parent process should have locked locks in 3.9+, child ones will
+ # be reinitilized to free state
+ # In older pythons, state could be random (and no module_lock)
if self.module_lock:
- logging._releaseLock()
+ try:
+ logging._releaseLock()
+ except RuntimeError:
+ pass
for lock in self.locks:
- lock.release()
+ lock.release()
class RepoManager(object):
Related: https://pagure.io/koji/issue/2851
:thumbsup:
verified that this change fixes error when applied to the reproducer script from #2851, though I haven't tested with kojira itself.
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
I can confirm this fixes the issue in my private Koji instance and rmtree jobs are being completed successfully.
Metadata Update from @mfilip: - Pull-request tagged with: testing-done
Commit 98f81d6 fixes this pull-request
Pull-Request has been merged by tkopecek
Related: https://pagure.io/koji/issue/2851