diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-17 08:51:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-17 08:51:29 +0200 |
commit | c6406f47500114ef4f215ecf4c641b4f1cc2fb76 (patch) | |
tree | 611d20f09685e102d2aa093fd3a7d8215f7f25fc /server | |
parent | 8ebf2a5d5d126e6ef9b89109124adf2a5e9e293d (diff) | |
download | PeerTube-c6406f47500114ef4f215ecf4c641b4f1cc2fb76.tar.gz PeerTube-c6406f47500114ef4f215ecf4c641b4f1cc2fb76.tar.zst PeerTube-c6406f47500114ef4f215ecf4c641b4f1cc2fb76.zip |
Don't retry UpdateVideosScheduler transactions
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/schedulers/update-videos-scheduler.ts | 13 |
1 files changed, 6 insertions, 7 deletions
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 @@ | |||
1 | import { VideoModel } from '@server/models/video/video' | ||
2 | import { MVideoFullLight } from '@server/types/models' | ||
1 | import { logger } from '../../helpers/logger' | 3 | import { logger } from '../../helpers/logger' |
2 | import { AbstractScheduler } from './abstract-scheduler' | 4 | import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants' |
5 | import { sequelizeTypescript } from '../../initializers/database' | ||
3 | import { ScheduleVideoUpdateModel } from '../../models/video/schedule-video-update' | 6 | import { ScheduleVideoUpdateModel } from '../../models/video/schedule-video-update' |
4 | import { retryTransactionWrapper } from '../../helpers/database-utils' | ||
5 | import { federateVideoIfNeeded } from '../activitypub/videos' | 7 | import { federateVideoIfNeeded } from '../activitypub/videos' |
6 | import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants' | ||
7 | import { Notifier } from '../notifier' | 8 | import { Notifier } from '../notifier' |
8 | import { sequelizeTypescript } from '../../initializers/database' | 9 | import { AbstractScheduler } from './abstract-scheduler' |
9 | import { MVideoFullLight } from '@server/types/models' | ||
10 | import { VideoModel } from '@server/models/video/video' | ||
11 | 10 | ||
12 | export class UpdateVideosScheduler extends AbstractScheduler { | 11 | export class UpdateVideosScheduler extends AbstractScheduler { |
13 | 12 | ||
@@ -20,7 +19,7 @@ export class UpdateVideosScheduler extends AbstractScheduler { | |||
20 | } | 19 | } |
21 | 20 | ||
22 | protected async internalExecute () { | 21 | protected async internalExecute () { |
23 | return retryTransactionWrapper(this.updateVideos.bind(this)) | 22 | return this.updateVideos() |
24 | } | 23 | } |
25 | 24 | ||
26 | private async updateVideos () { | 25 | private async updateVideos () { |