Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fix exceptions not bubbling up through the task
Browse files Browse the repository at this point in the history
  • Loading branch information
dralley committed Jul 28, 2020
1 parent 8faeaa0 commit 0ec6ab1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/6469.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix exceptions thrown by content migration not being bubbled up through the task.
4 changes: 2 additions & 2 deletions pulp_2to3_migration/app/plugin/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ async def run(self):
# We are waiting on the coroutine to finish, because the order of the processed
# content for plugins like Container and RPM is important because of the relations
# between the content types.
await asyncio.wait(
[self.migrate_to_pulp3(pulp_2to3_detail_qs, self.migrator, ctype, pb=pb)]
await asyncio.gather(
self.migrate_to_pulp3(pulp_2to3_detail_qs, self.migrator, ctype, pb=pb)
)

async def migrate_to_pulp3(self, batch, migrator, content_type, pb=None):
Expand Down

0 comments on commit 0ec6ab1

Please sign in to comment.