ActivityPub-federated video streaming platform using P2P directly in your web browser
Also add stall job check for studio
Chocobozzz17247f205f4c
diff --git a/config/default.yaml b/config/default.yamlindex 75add5b4a3..1676917263 100644--- a/config/default.yaml+++ b/config/default.yaml@@ -455,6 +455,7 @@ remote_runners:stalled_jobs:live: '30 seconds'vod: '2 minutes'+ studio: '2 minutes'transcription: '2 minutes'thumbnails:diff --git a/config/production.yaml.example b/config/production.yaml.exampleindex eb7fc48d14..47ab89a372 100644--- a/config/production.yaml.example+++ b/config/production.yaml.example@@ -453,6 +453,8 @@ remote_runners:stalled_jobs:live: '30 seconds'vod: '2 minutes'+ studio: '2 minutes'+ transcription: '2 minutes'thumbnails:# When automatically generating a thumbnail from the videodiff --git a/server/core/initializers/config.ts b/server/core/initializers/config.tsindex 485facb67e..12b53e36c9 100644--- a/server/core/initializers/config.ts+++ b/server/core/initializers/config.ts@@ -443,6 +443,7 @@ const CONFIG = {STALLED_JOBS: {LIVE: parseDurationToMs(config.get<string>('remote_runners.stalled_jobs.live')),VOD: parseDurationToMs(config.get<string>('remote_runners.stalled_jobs.vod')),+ STUDIO: parseDurationToMs(config.get<string>('remote_runners.stalled_jobs.studio')),TRANSCRIPTION: parseDurationToMs(config.get<string>('remote_runners.stalled_jobs.transcription'))}},diff --git a/server/core/lib/schedulers/runner-job-watch-dog-scheduler.ts b/server/core/lib/schedulers/runner-job-watch-dog-scheduler.tsindex 61b77fe021..f02615b1b1 100644--- a/server/core/lib/schedulers/runner-job-watch-dog-scheduler.ts+++ b/server/core/lib/schedulers/runner-job-watch-dog-scheduler.ts@@ -8,7 +8,6 @@ import { AbstractScheduler } from './abstract-scheduler.js'const lTags = loggerTagsFactory('runner')export class RunnerJobWatchDogScheduler extends AbstractScheduler {-private static instance: AbstractSchedulerprotected schedulerIntervalMs = SCHEDULER_INTERVALS_MS.RUNNER_JOB_WATCH_DOG@@ -33,7 +32,12 @@ export class RunnerJobWatchDogScheduler extends AbstractScheduler {types: [ 'video-transcription' ]})- for (const stalled of [ ...vodStalledJobs, ...liveStalledJobs, ...transcriptionStalledJobs ]) {+ const studioStalledJobs = await RunnerJobModel.listStalledJobs({+ staleTimeMS: CONFIG.REMOTE_RUNNERS.STALLED_JOBS.STUDIO,+ types: [ 'video-studio-transcoding' ]+ })++ for (const stalled of [ ...vodStalledJobs, ...liveStalledJobs, ...transcriptionStalledJobs, ...studioStalledJobs ]) {logger.info('Abort stalled runner job %s (%s)', stalled.uuid, stalled.type, lTags(stalled.uuid, stalled.type))const Handler = getRunnerJobHandlerClass(stalled)