Skip to content

Commit

Permalink
Change batch size to 200 and enable multiprocessing
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 committed Feb 26, 2025
1 parent b1b40f5 commit e36500b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions vulnerabilities/pipelines/recompute_content_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ def process_advisories(
)

log(f"Running function: {advisory_func.__name__}", level=logging.INFO)
# if max_workers <= 0:
if True:
if max_workers <= 0:
log(f"Running function in single process", level=logging.INFO)
for advisory_ids in progress.iter(advisory_batches):
progress.log_progress()
Expand Down
2 changes: 1 addition & 1 deletion vulnerabilities/pipelines/remove_duplicate_advisories.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class RemoveDuplicateAdvisoriesPipeline(VulnerableCodePipeline):
"""Pipeline to remove duplicate advisories based on their content."""

pipeline_id = "remove_duplicate_advisories"
BATCH_SIZE = 1000
BATCH_SIZE = 200

@classmethod
def steps(cls):
Expand Down

0 comments on commit e36500b

Please sign in to comment.