Add p-queue timeouts; fix search crash; improve promise rejection logging
This commit is contained in:
parent
9f9ce91a9c
commit
bc3b61db1d
17 changed files with 54 additions and 26 deletions
|
@ -19,11 +19,11 @@ let singleQueue = null;
|
|||
let multipleQueue = null;
|
||||
|
||||
function makeNewSingleQueue() {
|
||||
singleQueue = new Queue({ concurrency: 1 });
|
||||
singleQueue = new Queue({ concurrency: 1, timeout: 1000 * 60 * 2 });
|
||||
return singleQueue;
|
||||
}
|
||||
function makeNewMultipleQueue() {
|
||||
multipleQueue = new Queue({ concurrency: 10 });
|
||||
multipleQueue = new Queue({ concurrency: 10, timeout: 1000 * 60 * 2 });
|
||||
return multipleQueue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue