mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
Merge pull request #22104 from overleaf/jpa-graceful-shutdown-abort-retries
[history-v1] back_fill_file_hash: abort retries during graceful shutdown GitOrigin-RevId: 0d52dde32e4a7bf2293f341644b7416e669b2bdc
This commit is contained in:
@@ -335,6 +335,7 @@ async function processFile(entry, filePath) {
|
||||
try {
|
||||
return await processFileOnce(entry, filePath)
|
||||
} catch (err) {
|
||||
if (gracefulShutdownInitiated) throw err
|
||||
if (err instanceof NotFoundError) {
|
||||
const { bucketName } = OError.getFullInfo(err)
|
||||
if (bucketName === USER_FILES_BUCKET_NAME && !RETRY_FILESTORE_404) {
|
||||
@@ -991,6 +992,7 @@ class ProjectContext {
|
||||
try {
|
||||
return await backupPersistor.forProject(projectBlobsBucket, key)
|
||||
} catch (err) {
|
||||
if (gracefulShutdownInitiated) throw err
|
||||
if (err instanceof NoKEKMatchedError) {
|
||||
throw err
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user