memory leak prevention...

This commit is contained in:
unknown 2023-03-28 19:35:38 +02:00
parent 6b583d61c3
commit 6bf201d6ea
1 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,10 @@ const queue = new BQueue('download', {
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT,
password: process.env.REDIS_PASS,
}
},
removeOnFailure: true,
removeOnSuccess: true,
storeJobs: false
})
async function check() {
@ -104,7 +107,7 @@ queue.process(5, async function (job, done) {
}
})
check()
checkChannel('UCFAiFyGs6oDiF1Nf-rRJpZA')
// setInterval(() => {
// check()
// }, 300000)