Skip to content

Commit 9b90485

Browse files
Adjust batch size
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 235fb85 commit 9b90485

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

minecode_pipelines/pipelines/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ def _mine_and_publish_packageurls(
193193
)
194194
checkout["file_to_commit"].add(purl_file)
195195
checkout["file_processed_count"] += 1
196-
if logger:
197-
logger(f"{checkout['repo'].working_dir}: {checkout['file_processed_count']} / {batch_size}")
198196

199197
if len(checkout["file_to_commit"]) > batch_size:
200198
if logger:

minecode_pipelines/pipelines/mine_npm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MineNPM(MineCodeBasePipeline):
3131
a FederatedCode repo.
3232
"""
3333

34-
package_batch_size = 70
34+
package_batch_size = 5
3535

3636
@classmethod
3737
def steps(cls):

minecode_pipelines/pipes/npm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ def get_npm_packages_to_sync(packages_file, state, logger=None):
228228
if logger:
229229
logger(f"Starting package mining for {len(packages_to_sync)} packages")
230230

231+
synced_packages = []
232+
231233
elif state == INITIAL_SYNC_STATE or state == PERIODIC_SYNC_STATE:
232234
synced_packages = get_mined_packages_from_checkpoint(
233235
config_repo=MINECODE_PIPELINES_CONFIG_REPO,

0 commit comments

Comments
 (0)