More robust live ending job

pull/5042/head
Chocobozzz 2022-05-25 15:18:29 +02:00
parent 5333788c08
commit c8fdfab0e3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 7 additions and 3 deletions

View File

@ -244,6 +244,10 @@ async function cleanupLiveAndFederate (options: {
await cleanupNormalLive(video, streamingPlaylist)
}
const fullVideo = await VideoModel.loadAndPopulateAccountAndServerAndTags(video.id)
return federateVideoIfNeeded(fullVideo, false, undefined)
try {
const fullVideo = await VideoModel.loadAndPopulateAccountAndServerAndTags(video.id)
return federateVideoIfNeeded(fullVideo, false, undefined)
} catch (err) {
logger.warn('Cannot federate live after cleanup', { videoId: video.id, err })
}
}

View File

@ -18,7 +18,7 @@ import {
const expect = chai.expect
describe('Test live', function () {
describe('Test live socket messages', function () {
let servers: PeerTubeServer[] = []
before(async function () {