repos = misc.group(jobs, lambda job: job.build.build_repo)
# Run the dependency check for each repository concurrently
- async with asyncio.TaskGroup() as tasks:
- for repo in repos:
- tasks.create_task(
- repo.installcheck(repos[repo])
- )
-
- # Dispatch any jobs
- await self.backend.jobs.queue.dispatch()
+ for repo in repos:
+ await repo.installcheck(repos[repo])
class Queue(base.Object):
except BuildExistsError as e:
log.debug("Latest build is newer")
- # Launch the build
- if release and release.build:
- await self.backend.builds.launch([release.build])
+ # Dispatch any jobs
+ await self.backend.jobs.queue.dispatch()
async def _fetch_versions(self):
"""
self.build = build
self.repo = repo
+ # Launch the build
+ await self.backend.builds.launch([build])
+
async def _update_source_package(self, package, target):
"""
Takes a package and recreates it with this release
with self.db.transaction():
job = await job.retry(self.current_user)
- # Launch the newly created job
- await self.backend.jobs.launch([job])
+ # Launch the newly created job
+ await self.backend.jobs.launch([job])
# Redirect back to the build page
self.redirect("/builds/%s" % job.build.uuid)