mirror of https://github.com/preservetube/auto.git
memory leak prevention...
This commit is contained in:
parent
6b583d61c3
commit
6bf201d6ea
7
index.js
7
index.js
|
@ -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)
|
Loading…
Reference in New Issue