enhance(backend): tweak system job log

This commit is contained in:
syuilo 2025-08-01 09:51:43 +09:00
parent 4f5d3f6f7d
commit a7d1c94f48
1 changed files with 7 additions and 2 deletions

View File

@ -102,8 +102,13 @@ export class QueueService {
}, { }, {
name: def.name, name: def.name,
opts: { opts: {
removeOnComplete: 10, // 期限ではなくcountで設定したいが、ジョブごとではなくキュー全体でカウントされるため、高頻度で実行されるジョブによって低頻度で実行されるジョブのログが消えることになる
removeOnFail: 30, removeOnComplete: {
age: 3600 * 24 * 7, // keep up to 7 days
},
removeOnFail: {
age: 3600 * 24 * 7, // keep up to 7 days
},
}, },
}); });
} }