aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-17 08:51:29 +0200
committerChocobozzz <me@florianbigard.com>2021-06-17 08:51:29 +0200
commitc6406f47500114ef4f215ecf4c641b4f1cc2fb76 (patch)
tree611d20f09685e102d2aa093fd3a7d8215f7f25fc /server
parent8ebf2a5d5d126e6ef9b89109124adf2a5e9e293d (diff)
downloadPeerTube-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.ts13
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 @@
1import { VideoModel } from '@server/models/video/video'
2import { MVideoFullLight } from '@server/types/models'
1import { logger } from '../../helpers/logger' 3import { logger } from '../../helpers/logger'
2import { AbstractScheduler } from './abstract-scheduler' 4import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants'
5import { sequelizeTypescript } from '../../initializers/database'
3import { ScheduleVideoUpdateModel } from '../../models/video/schedule-video-update' 6import { ScheduleVideoUpdateModel } from '../../models/video/schedule-video-update'
4import { retryTransactionWrapper } from '../../helpers/database-utils'
5import { federateVideoIfNeeded } from '../activitypub/videos' 7import { federateVideoIfNeeded } from '../activitypub/videos'
6import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants'
7import { Notifier } from '../notifier' 8import { Notifier } from '../notifier'
8import { sequelizeTypescript } from '../../initializers/database' 9import { AbstractScheduler } from './abstract-scheduler'
9import { MVideoFullLight } from '@server/types/models'
10import { VideoModel } from '@server/models/video/video'
11 10
12export class UpdateVideosScheduler extends AbstractScheduler { 11export 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 () {