Skip to content

Commit bfbf0d2

Browse files
authored
Limit a task to a maximum of 500 backfills (#15372)
1 parent fd35a53 commit bfbf0d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

warehouse/packaging/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def backfill_metadata(request):
7878
)
7979

8080
with tempfile.TemporaryDirectory() as tmpdir:
81-
for file_ in files_without_metadata.yield_per(100):
81+
for file_ in files_without_metadata.yield_per(100).limit(500):
8282
# Use pip to download just the metadata of the wheel
8383
file_url = base_url.format(path=file_.path)
8484
lazy_dist = dist_from_wheel_url(

0 commit comments

Comments
 (0)