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