I am currently using p-queue in combination with Puppeteer. What I want to achieve is to add the current function to the queue if an exception gets thrown. I am running with concurrency set to 3.
I have the following snippets:
getAccounts is simply a method for parsing a json file.
I am currently using p-queue in combination with Puppeteer. What I want to achieve is to add the current function to the queue if an exception gets thrown. I am running with concurrency set to 3.
I have the following snippets:
getAccounts
is simply a method for parsing a json file.When it goes into the catch, the queue just stops. I am not sure if my implementation is right. But it also does not execute
console.log("Done");
.