Skip to content

Commit e36500b

Browse files
committed
Change batch size to 200 and enable multiprocessing
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent b1b40f5 commit e36500b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

vulnerabilities/pipelines/recompute_content_ids.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ def process_advisories(
9494
)
9595

9696
log(f"Running function: {advisory_func.__name__}", level=logging.INFO)
97-
# if max_workers <= 0:
98-
if True:
97+
if max_workers <= 0:
9998
log(f"Running function in single process", level=logging.INFO)
10099
for advisory_ids in progress.iter(advisory_batches):
101100
progress.log_progress()

vulnerabilities/pipelines/remove_duplicate_advisories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class RemoveDuplicateAdvisoriesPipeline(VulnerableCodePipeline):
7373
"""Pipeline to remove duplicate advisories based on their content."""
7474

7575
pipeline_id = "remove_duplicate_advisories"
76-
BATCH_SIZE = 1000
76+
BATCH_SIZE = 200
7777

7878
@classmethod
7979
def steps(cls):

0 commit comments

Comments
 (0)