Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to add maxItems parameter. #146

Closed
sadigaxund opened this issue Sep 3, 2023 · 1 comment · Fixed by #148
Closed

Not possible to add maxItems parameter. #146

sadigaxund opened this issue Sep 3, 2023 · 1 comment · Fixed by #148

Comments

@sadigaxund
Copy link

sadigaxund commented Sep 3, 2023

Hello,
Judging from source code, I believe, it is not possible to specify maxItems parameter like this:

https://api.apify.com/v2/acts/actor-name/runs?token=YOUR_TOKEN&maxItems=10

Something like this:
actor.start(run_input={some input}, memory_mbytes=32768, build='latest', timeout_secs=100, max_items=100)

Please correct me if I'm wrong, and if so what's the way of accomplishing this?

@fnesveda
Copy link
Member

fnesveda commented Sep 4, 2023

Hi, good catch! The support for specifying the maxItems parameter was missing from the Python API client, I've added it in #148, a new version with that change merged will be released in the next few days.

fnesveda added a commit that referenced this issue Sep 5, 2023
…lt Actors and their runs (#148)

When we introduced pay-per result Actors, we did not add support for
specifying the max items limit to the Python API client. This adds it
hopefully everywhere it's supported.

Closes #146.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants