We are writing a web crawler using Puppeteer. The puppeteer crawler that we wrote executes and crawl the website URLs without problem for websites with pages like some 1,500 - 5,000 However when we execute for websites more than 5,000 and if it breaks in the middle due to some error or crash, then it requires to start over again. How to make Puppeteer based web crawler to resume from the last state of crawling if any error happened? Are there any built-in functions in Puppeteer? How to make this puppeteer headless chrome web crawling through a queue system?