mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 10:52:40 +08:00
fix(server): remove job on complete (#10305)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user