yappiest-sapphire•2y ago
crawler process not exiting after teardown is called.
I am running a Playwright crawler and I call
await crawler.teardown()
after some condition is met,
Issue with this approach is that the crawlee process hangs indefinitely and doesn't exit even after a while. I have to force stop it using CTRL + C, on searching github, it looks like its an issue with some timeouts but I havent set one anywhere.
here's how I am initializing my crawler:
and I have a playwright config where I have set the default timeout
3 Replies
yappiest-sapphireOP•2y ago
it just logs this at the end and then hangs indefinitely
@AltairSama2 just advanced to level 5! Thanks for your contributions! 🎉
yappiest-sapphireOP•2y ago
I fixed it by removing the return statement in my route handler, I guess it was causing issues with teardown's promise, I'm not sure why though