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
}
1 Reply
wise-white•2y ago
Are You using ActorClient.call() ?
There is "memory" option:
https://docs.apify.com/api/client/js/reference/interface/ActorCallOptions#memory
Or there is memory param if you use api call:
https://docs.apify.com/api/v2/#/reference/actors/run-actor-synchronously/with-input