mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
don't let s3 errors stop archive worker
This commit is contained in:
parent
b343be844e
commit
a55b72871f
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ processUpdates = (pending) ->
|
|||
logger.log {project_id, doc_id}, "skipping pack, missing project/doc id"
|
||||
return callback()
|
||||
handler = (err, result) ->
|
||||
if err? and err.code is "InternalError" and err.retryable
|
||||
logger.warn {err, result}, "ignoring S3 error in pack archive worker"
|
||||
# Ignore any s3 errors due to random problems
|
||||
err = null
|
||||
if err?
|
||||
logger.error {err, result}, "error in pack archive worker"
|
||||
return callback(err)
|
||||
|
|
Loading…
Reference in a new issue