dual-salmonD
Apify & Crawlee3y ago
2 replies
dual-salmon

I want to define memory allocated for the run when I trigger it using the api

My account has 32 Giga bytes memory, but each run allocate 4 giga memory. I want to change it to maximum 1 giga memory so I could run till 32 parallel job.

I can do that from the console, how could I do it from the api

This is example of the data I use when I trigger the api:

"profiles": [
self.get_profile_url(platform_name, influencer_name)
],
"proxyConfiguration": {
"useApifyProxy": True
},
"resultsPerPage": num_of_posts,
"scrapeEmptyChannelInfo": False,
"shouldDownloadCovers": False,
"shouldDownloadVideos": True,
"videoKvStoreIdOrName": f"my{platform_name.capitalize()}Videos",
"maxRequestRetries": 7,
"maxConcurrency": 2,
"timeout": 10000
}
Was this page helpful?