mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-22 16:56:39 -06:00
Retry runner job db saving if needed
This commit is contained in:
parent
6349881dbd
commit
f93bc6a8be
@ -86,15 +86,13 @@ export abstract class AbstractJobHandler <C, U extends RunnerJobUpdatePayload, S
|
||||
priority
|
||||
})
|
||||
|
||||
const job = await sequelizeTypescript.transaction(async transaction => {
|
||||
return runnerJob.save({ transaction })
|
||||
})
|
||||
await saveInTransactionWithRetries(runnerJob)
|
||||
|
||||
if (runnerJob.state === RunnerJobState.PENDING) {
|
||||
PeerTubeSocket.Instance.sendAvailableJobsPingToRunners()
|
||||
}
|
||||
|
||||
return job
|
||||
return runnerJob
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user