[history-v1] extend --report with number of files to check/missing (#27397)

* [history-v1] put logs of back_fill_file_hash script in /var/log/overleaf

* [history-v1] do not leave tmp dir behind when using --report

* [history-v1] extend --report with number of files to check/missing

* [history-v1] move all the options into command line flags

Change default values:
- concurrency to 10
- concurrent batches to 1
- stream high water mark to 1MiB

* [web] find_malformed_filetrees: log progress on stderr

* [history-v1] fix percentage of projects that need back-filling

GitOrigin-RevId: ebd7889840f97b24eda43774ffe7524998fb634b
This commit is contained in:
Jakob Ackermann
2025-07-30 08:07:12 +00:00
committed by Copybot
parent 3a17c1dc61
commit 93c04fe240
3 changed files with 188 additions and 98 deletions
@@ -49,7 +49,7 @@ async function main(trackProgress) {
for (const project of projects) {
projectsProcessed += 1
if (projectsProcessed % 100000 === 0) {
console.log(projectsProcessed, 'projects processed')
console.warn(projectsProcessed, 'projects processed')
}
const projectId = project._id.toString()
for (const { reason, path, _id } of processProject(project)) {