louisdck
04/19/2025, 6:30 PMjson
{
"minMemoryMbytes": 128,
"maxMemoryMbytes": 256,
}
However, this does not change the default, which is 4096MB. When the user first opens the actor and wants to run he will get this message: "You've set memory higher than the maximum of 256MB allowed for this Actor.". While it's not super hard for the user to change this, it would be more user friendly if the suggested default amount falls within the accepted range. Is this something we can change as a developer?louisdck
04/20/2025, 6:36 AMjavascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({
token: 'YOUR_TOKEN',
});
const actor = client.actor('YOUR_USERNAME/adding-actor');
await actor.update({
defaultRunOptions: {
build: 'latest',
memoryMbytes: 256,
timeoutSecs: 20,
},
});apify_matymar
04/28/2025, 11:29 AMlouisdck
04/28/2025, 4:46 PMapify_matymar
04/29/2025, 9:29 AMApifyBot
04/29/2025, 9:29 AM