fix(server): remove job on complete (#10305)

This commit is contained in:
fengmk2
2025-02-20 04:39:05 +00:00
parent 5042d9f644
commit ff0ce1a962

View File

@@ -30,10 +30,8 @@ defineStartupConfig('job', {
prefix: 'affine_job', prefix: 'affine_job',
defaultJobOptions: { defaultJobOptions: {
attempts: 5, attempts: 5,
removeOnComplete: { // should remove job after it's completed, because we will add a new job with the same job id
age: 3600 /* 1h */, removeOnComplete: true,
count: 100,
},
removeOnFail: { removeOnFail: {
age: 24 * 3600 /* 1 day */, age: 24 * 3600 /* 1 day */,
count: 500, count: 500,