Add p-queue timeouts; fix search crash; improve promise rejection logging
This commit is contained in:

committed by
Josh Perez

parent
9f9ce91a9c
commit
bc3b61db1d
2
main.js
2
main.js
@@ -1433,7 +1433,7 @@ async function ensureFilePermissions(onlyFiles) {
|
||||
console.log(`Ensuring file permissions for ${files.length} files`);
|
||||
|
||||
// Touch each file in a queue
|
||||
const q = new PQueue({ concurrency: 5 });
|
||||
const q = new PQueue({ concurrency: 5, timeout: 1000 * 60 * 2 });
|
||||
q.addAll(
|
||||
files.map(f => async () => {
|
||||
const isDir = f.endsWith('/');
|
||||
|
Reference in New Issue
Block a user