urgent-maroonU
Apify & Crawlee3y ago
2 replies
urgent-maroon

Delay exit program after crawl all request.

I'm currently running a PuppeteerCrawler with crawlee.
After my code print "INFO PuppeteerCrawler: Crawl finished. Final request statistics". My program do not exit instantly, It's delay about 5 seconds.
Can you help me explain and fix it? Thank you!
Bellow is simple code
await crawler.run([url]); console.log('done')
It print "done", then about 5 seconds my program closes.
Was this page helpful?