feat(queue): auto clean up complete and fail jobs
This commit is contained in:
10
packages/backend/src/helpers/remove-job-configuration.ts
Normal file
10
packages/backend/src/helpers/remove-job-configuration.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export const REMOVE_AFTER_30_DAYS_OR_150_JOBS = {
|
||||
age: 30 * 24 * 3600,
|
||||
count: 150,
|
||||
};
|
||||
|
||||
export const REMOVE_AFTER_7_DAYS_OR_50_JOBS = {
|
||||
age: 7 * 24 * 3600,
|
||||
count: 50,
|
||||
};
|
||||
|
Reference in New Issue
Block a user