Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/427.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated ``ProgressReport`` to use new async API in sync task for pulpcore 3.15
4 changes: 2 additions & 2 deletions pulp_python/app/tasks/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def run(self):
environ.pop('http_proxy')
deferred_download = self.remote.policy != Remote.IMMEDIATE
workers = self.remote.download_concurrency or self.remote.DEFAULT_DOWNLOAD_CONCURRENCY
with ProgressReport(
async with ProgressReport(
message="Fetching Project Metadata", code="sync.fetching.project"
) as p:
pmirror = PulpMirror(
Expand Down Expand Up @@ -198,7 +198,7 @@ async def determine_packages_to_sync(self):
async def process_package(self, package):
"""Filters the package and creates content from it"""
# Don't save anything if our metadata filters all fail.
self.progress_report.increment()
await self.progress_report.aincrement()
if not package.filter_metadata(self.filters.filter_metadata_plugins()):
return None

Expand Down