mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(server): remove job on complete (#10305)
This commit is contained in:
@@ -30,10 +30,8 @@ defineStartupConfig('job', {
|
||||
prefix: 'affine_job',
|
||||
defaultJobOptions: {
|
||||
attempts: 5,
|
||||
removeOnComplete: {
|
||||
age: 3600 /* 1h */,
|
||||
count: 100,
|
||||
},
|
||||
// should remove job after it's completed, because we will add a new job with the same job id
|
||||
removeOnComplete: true,
|
||||
removeOnFail: {
|
||||
age: 24 * 3600 /* 1 day */,
|
||||
count: 500,
|
||||
|
||||
Reference in New Issue
Block a user