CA
correct-apricot

How to set the memory using apify-client?

How can I set the memory of an actor when using the apify-client js client? I didn't see any documentation on this. Is it possible?
1 Reply
grumpy-cyan
grumpy-cyan2y ago
Hello, you can specify this in the second argument of call and start methods:
await client.actor('actorId').call({ foo: 'bar' }, { memory: 1024 });
// or
await client.actor('actorId').start({ foo: 'bar' }, { memory: 1024 });
await client.actor('actorId').call({ foo: 'bar' }, { memory: 1024 });
// or
await client.actor('actorId').start({ foo: 'bar' }, { memory: 1024 });

Did you find this page helpful?