ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix cancel on stall error message
Chocobozzz0e718cb7b27d
diff --git a/server/core/lib/runners/job-handlers/abstract-job-handler.ts b/server/core/lib/runners/job-handlers/abstract-job-handler.tsindex 1cc8f236c2..d31effee63 100644--- a/server/core/lib/runners/job-handlers/abstract-job-handler.ts+++ b/server/core/lib/runners/job-handlers/abstract-job-handler.ts@@ -199,11 +199,12 @@ export abstract class AbstractJobHandler <C, U extends RunnerJobUpdatePayload, Sasync abort (options: {runnerJob: MRunnerJob+ abortNotSupportedErrorMessage?: string}) {- const { runnerJob } = options+ const { runnerJob, abortNotSupportedErrorMessage = 'Job has been aborted but it is not supported by this job type' } = optionsif (this.isAbortSupported() !== true) {- return this.error({ runnerJob, message: 'Job has been aborted but it is not supported by this job type' })+ return this.error({ runnerJob, message: abortNotSupportedErrorMessage })}await this.specificAbort(options)diff --git a/server/core/lib/schedulers/runner-job-watch-dog-scheduler.ts b/server/core/lib/schedulers/runner-job-watch-dog-scheduler.tsindex 941e79c3eb..7669e359b8 100644--- a/server/core/lib/schedulers/runner-job-watch-dog-scheduler.ts+++ b/server/core/lib/schedulers/runner-job-watch-dog-scheduler.ts@@ -32,7 +32,11 @@ export class RunnerJobWatchDogScheduler extends AbstractScheduler {logger.info('Abort stalled runner job %s (%s)', stalled.uuid, stalled.type, lTags(stalled.uuid, stalled.type))const Handler = getRunnerJobHandlerClass(stalled)- await new Handler().abort({ runnerJob: stalled })++ await new Handler().abort({+ runnerJob: stalled,+ abortNotSupportedErrorMessage: 'Stalled runner job'+ })}}