lei-sharp-sharp-sharp problem description
the termination here does not refer to the termination when the condition is reached, but by external force.
I use koa as the web service and puppeteer as the crawler to read the list of the database in a loop to query the data of a website. When the list query is completed, it will stop running.
is there a way to stop the crawler function midway and ensure that koa runs properly without killing the entire node process?