mirror of https://github.com/Chocobozzz/PeerTube
Don't retry UpdateVideosScheduler transactions
parent
8ebf2a5d5d
commit
c6406f4750
|
@ -1,13 +1,12 @@
|
|||
import { logger } from '../../helpers/logger'
|
||||
import { AbstractScheduler } from './abstract-scheduler'
|
||||
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 { MVideoFullLight } from '@server/types/models'
|
||||
import { logger } from '../../helpers/logger'
|
||||
import { SCHEDULER_INTERVALS_MS } from '../../initializers/constants'
|
||||
import { sequelizeTypescript } from '../../initializers/database'
|
||||
import { ScheduleVideoUpdateModel } from '../../models/video/schedule-video-update'
|
||||
import { federateVideoIfNeeded } from '../activitypub/videos'
|
||||
import { Notifier } from '../notifier'
|
||||
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 () {
|
||||
|
|
Loading…
Reference in New Issue