Apify in NestJS scheduler
Hello everyone
I am using Apify + Crawlee Cheerio Crawler + NestJS scheduler in my project, and getting issue NestJS process for running the server is quit when calling Apify.exit() . Below is my code
I would like to call
Actor.exit()
to reset the index of data json files. I can remove Actor.exit()
but will get this error
[Nest] 43924 - 06/08/2024, 8:30:02 PM ERROR [Scheduler] Error: ENOENT: no such file or directory, open '/storage/datasets/default/000000001.json'
Does anyone has this similar issue when running Apify Crawlee on NestJS framework ? Can you please help ?
Thank you
2 Replies
stormy-gold•12mo ago
Hello @anh.tran.conf,
calling the exit method like this should do the trick:
wise-whiteOP•12mo ago
Thank you @vojtechmaslan , it works