Needed timeout parameter.
# apify-platform
s
I'm scraping google map review. Actor is 'agents/google-maps-reviews'. I must scrape as much as possible, during limited duration(120s). But timeout is critical. I can specify maxItems, but scraping rate is variable, so I can't decide the propriety value of maxItems. It sometimes scraps 2.9 reviews/s and sometimes 6.3 reviews/s. I have upgraded to "Scale plan", but no effect. How can I solve this? Can you add parameter "timeout"? I'm looking for your reply. Thanks in advance.
a
message has been deleted
t
if you are using it from external api, kill it after x seconds. let me know if you are doing in another way
m
Hello, @shockwave_1230 you can use the
timeout
parameter to limit the execution of the Actor. When the Actor run reaches the value of seconds specified by this parameter it will end the run with status
TIMED-OUT
. All retrieved results can be extracted from the dataset. The
timeout
parameter is a query parameter which isn't part of the input. Here is a reference to API call which will return results after the Actor finishes execution: https://docs.apify.com/api/v2/act-run-sync-get-dataset-items-post