This repository was archived by the owner on Dec 17, 2021. It is now read-only.
Tags: overleaf/docstore
Tags
Don't put docs which are already in s3 through archive job This fixes the bug we saw with 'RangeError: Maximum call stack size exceeded' if lots of docs are already in s3 cb() gets called synchronously multiple times quickly which can cause the execption. I am not sure where the recursion is, maybe inside async. doing setImmediate(cb) also fixes the issue as I beilve it gives the process chance to clear the stack. Similar to process.nextTick