mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #19255 from overleaf/em-increase-timeout-docstore-has-ranges
Handle docstore timeouts during history migration GitOrigin-RevId: 9b00aa039fc9646c24e69bfca51dd8e784434fc6
This commit is contained in:
parent
a587d63f15
commit
01ce2721c0
1 changed files with 6 additions and 2 deletions
|
@ -145,8 +145,12 @@ async function quickMigration(projectId, direction = 'forwards') {
|
|||
projectHasRanges =
|
||||
await DocstoreManager.promises.projectHasRanges(projectId)
|
||||
} catch (err) {
|
||||
await DocumentUpdaterHandler.promises.unblockProject(projectId)
|
||||
throw err
|
||||
// Docstore request probably timed out. Assume the project has ranges
|
||||
logger.warn(
|
||||
{ err, projectId },
|
||||
'Failed to check if project has ranges; proceeding with a resync migration'
|
||||
)
|
||||
projectHasRanges = true
|
||||
}
|
||||
if (projectHasRanges) {
|
||||
await DocumentUpdaterHandler.promises.unblockProject(projectId)
|
||||
|
|
Loading…
Reference in a new issue