Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
distrobuild
Commits
9dad1624
Commit
9dad1624
authored
Apr 12, 2021
by
Mustafa Gezen
🏗
Browse files
fix: prefetch package when signing builds
parent
4c5e3e54
Changes
1
Hide whitespace changes
Inline
Side-by-side
distrobuild_scheduler/periodic_tasks.py
View file @
9dad1624
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment