More robust live ending job
This commit is contained in:
parent
5333788c08
commit
c8fdfab0e3
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue