Skip to content
Snippets Groups Projects
Verified Commit d4f3e914 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

packagist: Allow batch size records configuration in constructor

This allows to configure smaller batch when testing from docker & cli.
parent f236f3d1
No related branches found
No related tags found
1 merge request!496packagist: Make lister more resilient & actually list origins
......@@ -75,6 +75,7 @@ class PackagistLister(Lister[PackagistListerState, PackagistPageType]):
max_origins_per_page: Optional[int] = None,
max_pages: Optional[int] = None,
enable_origins: bool = True,
record_batch_size: int = 1000,
):
super().__init__(
scheduler=scheduler,
......@@ -85,6 +86,7 @@ class PackagistLister(Lister[PackagistListerState, PackagistPageType]):
max_origins_per_page=max_origins_per_page,
max_pages=max_pages,
enable_origins=enable_origins,
record_batch_size=record_batch_size,
)
self.session.headers.update({"Accept": "application/json"})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment