Skip to content

Commit ecaadd5

Browse files
fix(tasks): increase maxAttempts for answer-question and vendor orchestrator tasks (#1763)
Co-authored-by: Tofik Hasanov <annexcies@gmail.com>
1 parent 30495c6 commit ecaadd5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/app/src/jobs/tasks/vendors/answer-question.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ import { generateAnswerWithRAG } from './answer-question-helpers';
44

55
export const answerQuestion= task({
66
id: 'answer-question',
7-
queue: {
8-
concurrencyLimit: 10, // Max 10 questions processing simultaneously
9-
},
107
retry: {
11-
maxAttempts: 2,
8+
maxAttempts: 3,
129
},
1310
run: async (payload: {
1411
question: string;

apps/app/src/jobs/tasks/vendors/vendor-questionnaire-orchestrator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const BATCH_SIZE = 500; // Process 500 (prev. used) 10 questions at a time
77
export const vendorQuestionnaireOrchestratorTask = task({
88
id: 'vendor-questionnaire-orchestrator',
99
retry: {
10-
maxAttempts: 1,
10+
maxAttempts: 3,
1111
},
1212
run: async (payload: {
1313
vendorId: string;

0 commit comments

Comments
 (0)