From c6406f47500114ef4f215ecf4c641b4f1cc2fb76 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Jun 2021 08:51:29 +0200 Subject: Don't retry UpdateVideosScheduler transactions --- server/lib/schedulers/update-videos-scheduler.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'server/lib') diff --git a/server/lib/schedulers/update-videos-scheduler.ts b/server/lib/schedulers/update-videos-scheduler.ts index e61d4c2ac..af69bda89 100644 --- a/server/lib/schedulers/update-videos-scheduler.ts +++ b/server/lib/schedulers/update-videos-scheduler.ts @@ -1,13 +1,12 @@ +import { VideoModel } from '@server/models/video/video' +import { MVideoFullLight } from '@server/types/models' import { logger } from '../../helpers/logger' -import { AbstractScheduler } from './abstract-scheduler' +import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants' +import { sequelizeTypescript } from '../../initializers/database' import { ScheduleVideoUpdateModel } from '../../models/video/schedule-video-update' -import { retryTransactionWrapper } from '../../helpers/database-utils' import { federateVideoIfNeeded } from '../activitypub/videos' -import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants' import { Notifier } from '../notifier' -import { sequelizeTypescript } from '../../initializers/database' -import { MVideoFullLight } from '@server/types/models' -import { VideoModel } from '@server/models/video/video' +import { AbstractScheduler } from './abstract-scheduler' export class UpdateVideosScheduler extends AbstractScheduler { @@ -20,7 +19,7 @@ export class UpdateVideosScheduler extends AbstractScheduler { } protected async internalExecute () { - return retryTransactionWrapper(this.updateVideos.bind(this)) + return this.updateVideos() } private async updateVideos () { -- cgit v1.2.3