Skip to content

Commit cfb6cdb

Browse files
committed
fixed batch length
1 parent 73564b1 commit cfb6cdb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/core/query-executor.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export class QueryExporter {
328328
log(this.exportQueryConfig, `Processing assets in ${totalBatches} batches of ${batchSize}`, 'info');
329329

330330
// Process assets in batches
331-
for (let i = 0; i < batchSize; i++) {
331+
for (let i = 0; i < totalBatches; i++) {
332332
const start = i * batchSize;
333333
const end = Math.min(start + batchSize, assetUIDs.length);
334334
const batchAssetUIDs = assetUIDs.slice(start, end);
@@ -394,11 +394,6 @@ export class QueryExporter {
394394

395395
// Optional: Add delay between batches to avoid rate limiting
396396
if (i < totalBatches - 1 && this.exportQueryConfig.batchDelayMs) {
397-
log(
398-
this.exportQueryConfig,
399-
`Waiting ${this.exportQueryConfig.batchDelayMs}ms before next batch...`,
400-
'info',
401-
);
402397
await new Promise((resolve) => setTimeout(resolve, this.exportQueryConfig.batchDelayMs));
403398
}
404399
}

0 commit comments

Comments
 (0)