Skip to content

Commit 7df1b90

Browse files
committed
Tweak some of the task max attempts
1 parent 57a7e00 commit 7df1b90

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

apps/webapp/app/services/worker.server.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function getWorkerQueue() {
195195
},
196196
deliverHttpSourceRequest: {
197197
priority: 1, // smaller number = higher priority
198-
maxAttempts: 25,
198+
maxAttempts: 14,
199199
handler: async (payload, job) => {
200200
const service = new DeliverHttpSourceRequestService();
201201

@@ -204,7 +204,7 @@ function getWorkerQueue() {
204204
},
205205
startRun: {
206206
priority: 0, // smaller number = higher priority
207-
maxAttempts: 8,
207+
maxAttempts: 4,
208208
handler: async (payload, job) => {
209209
const service = new StartRunService();
210210

@@ -231,6 +231,7 @@ function getWorkerQueue() {
231231
},
232232
indexEndpoint: {
233233
priority: 1, // smaller number = higher priority
234+
maxAttempts: 7,
234235
handler: async (payload, job) => {
235236
const service = new IndexEndpointService();
236237

@@ -239,6 +240,7 @@ function getWorkerQueue() {
239240
},
240241
deliverEvent: {
241242
priority: 0, // smaller number = higher priority
243+
maxAttempts: 5,
242244
handler: async (payload, job) => {
243245
const service = new DeliverEventService();
244246

@@ -248,7 +250,7 @@ function getWorkerQueue() {
248250
refreshOAuthToken: {
249251
priority: 8, // smaller number = higher priority
250252
queueName: "internal-queue",
251-
maxAttempts: 10,
253+
maxAttempts: 7,
252254
handler: async (payload, job) => {
253255
await integrationAuthRepository.refreshConnection({
254256
connectionId: payload.connectionId,
@@ -286,7 +288,7 @@ function getExecutionWorkerQueue() {
286288
},
287289
performRunExecutionV2: {
288290
priority: 0, // smaller number = higher priority
289-
maxAttempts: 18,
291+
maxAttempts: 12,
290292
handler: async (payload, job) => {
291293
const service = new PerformRunExecutionV2Service();
292294

0 commit comments

Comments
 (0)