feat: puppeteer timeout
This commit is contained in:
@@ -54,9 +54,12 @@ const outPuppeteer = async (
|
||||
}
|
||||
: options
|
||||
));
|
||||
setTimeout(() => {
|
||||
browser.close();
|
||||
}, 30000);
|
||||
setTimeout(
|
||||
() => {
|
||||
browser.close();
|
||||
},
|
||||
5 * 60 * 1000
|
||||
);
|
||||
|
||||
return browser;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user