How can I wait with processing further logic untill all request from batch are proceeded
Hi
I have this code:
and this is my route handler:
The problem is the crawling process executes once the whole code in
processBatch
is done, eg. all batches are added to requestQueue and processResults
is executed ( which do not have any data since there is not yet created userData.results
so what I want to know it I need to move my logic to saving results to DB to route handler or is there some way to stop executing this function and start executing route handler and then move back to executing processResults
In response I will paste pseudo algorithm what I expect2 Replies
View post on community site
This post has been pushed to the community knowledgebase. Any replies in this thread will be synced to the community site.
Apify Community
modern-tealOP•8mo ago