mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-13 09:48:27 +03:00
EMERG: Clean up score import jobs after they are ran.
WHY IS THIS NOT THE DEFAULT??? We've been shredding our servers disk and generally getting into trouble by having redis infinitely balloon up score imports and then writing them to disk for backup. we were writing upwards of 200Mbit/s. Goddamnit bull.
This commit is contained in:
@@ -3,6 +3,10 @@ import { Environment, TachiConfig } from "lib/setup/config";
|
||||
|
||||
const ScoreImportQueue = new Queue(`${TachiConfig.NAME} Score Import Queue`, {
|
||||
connection: { host: Environment.redisUrl, port: 6379 },
|
||||
defaultJobOptions: {
|
||||
removeOnComplete: true,
|
||||
removeOnFail: 10, // keep the last 10 failed jobs, but start pruning beyond that.
|
||||
}
|
||||
});
|
||||
|
||||
export default ScoreImportQueue;
|
||||
|
||||
Reference in New Issue
Block a user