Commit 9dad1624 authored by Mustafa Gezen's avatar Mustafa Gezen
Browse files

fix: prefetch package when signing builds

parent 4c5e3e54
......@@ -36,7 +36,7 @@ from distrobuild_scheduler.sigul import sign_koji_package
@atomic()
async def atomic_sign_unsigned_builds():
builds = await Build.filter(signed=False, status=BuildStatus.SUCCEEDED).all()
builds = await Build.filter(signed=False, status=BuildStatus.SUCCEEDED).prefetch_related("package").all()
for build in builds:
if build.koji_id:
koji_session.packageListAdd(tags.compose(), build.package.name, "distrobuild")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment