mirror of https://github.com/preservetube/auto.git
adding error fallback
This commit is contained in:
parent
e8211becde
commit
c5df497d22
2
index.js
2
index.js
|
@ -100,7 +100,7 @@ queue.process(5, async function (job, done) {
|
||||||
await database.createDatabaseVideo(id, videoUrl)
|
await database.createDatabaseVideo(id, videoUrl)
|
||||||
await redis.del(id)
|
await redis.del(id)
|
||||||
} else {
|
} else {
|
||||||
await redis.set(id, 'error')
|
await redis.set(`blacklist:${id}`, 'error')
|
||||||
logger.info({ message: `Couldn't find file for ${video.title}, ${id}` })
|
logger.info({ message: `Couldn't find file for ${video.title}, ${id}` })
|
||||||
return done()
|
return done()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue