mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Fix broken video state on move failure
Also add a --force option to move files even if the state is broken
This commit is contained in:
parent
86e857e969
commit
379387f56f
2 changed files with 20 additions and 16 deletions
|
@ -253,8 +253,8 @@ class JobQueue {
|
|||
|
||||
logger.log(logLevel, 'Cannot execute job %s in queue %s.', job.id, handlerName, { payload: job.data, err })
|
||||
|
||||
if (errorHandlers[job.name]) {
|
||||
errorHandlers[job.name](job, err)
|
||||
if (errorHandlers[handlerName]) {
|
||||
errorHandlers[handlerName](job, err)
|
||||
.catch(err => logger.error('Cannot run error handler for job failure %d in queue %s.', job.id, handlerName, { err }))
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue