Skip to content

Commit

Permalink
add more to job keep
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Oct 31, 2024
1 parent 1da234d commit dcb4f9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/event-worker/src/job-dispatch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export const createDispatchExecutionJobWorker = () =>
}),
{
connection: redis,
removeOnComplete: { age: 0, count: 0 },
removeOnFail: { age: 0, count: 0 },
removeOnComplete: { age: 1 * 60 * 60, count: 100 },
removeOnFail: { age: 12 * 60 * 60, count: 100 },
concurrency: 10,
},
);
3 changes: 2 additions & 1 deletion apps/event-worker/src/target-scan/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export const createTargetScanWorker = () =>
},
{
connection: redis,
removeOnComplete: { age: 0, count: 0 },
removeOnComplete: { age: 1 * 60 * 60, count: 100 },
removeOnFail: { age: 12 * 60 * 60, count: 100 },
concurrency: 10,
},
);

0 comments on commit dcb4f9a

Please sign in to comment.