Skip to content

Commit 2ee1cdb

Browse files
committed
fix: increase batch size
1 parent 9f77bf3 commit 2ee1cdb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

apps/backoffice-v2/src/domains/business-reports/fetchers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export const createBusinessReportBatch = async ({
201201
schema: z.object({ batchId: z.string() }),
202202
body: formData,
203203
isFormData: true,
204-
timeout: 30_000,
204+
timeout: 300_000,
205205
});
206206

207207
return handleZodError(error, batchId);

services/workflows-service/src/business-report/business-report.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ export class BusinessReportService {
122122
);
123123
}
124124

125-
if (businessReportsRequests.length > 100) {
126-
throw new UnprocessableEntityException('Batch size is too large');
125+
if (businessReportsRequests.length > 10000) {
126+
throw new UnprocessableEntityException('Batch size is too large, the maximum is 10000');
127127
}
128128

129129
const batchId = randomUUID();

0 commit comments

Comments
 (0)