Skip to content

[FEAT] Add runs count method #3704

@mtricht

Description

@mtricht

Is your feature request related to a problem? Please describe.
The RunsClient.list method returns a summary of task runs matching a filter. Setting include_payloads=False reduces the response size but it still is quite heavy when I only needs the total number of matching runs. There also seems to be a limit of 20k task runs when using RunsClient.list.

Describe the solution you'd like
I would like to see count and aio_count methods added to the RunsClient. These should accept the same filtering parameters as list but return a simple integer. I suspect this will require a new server-side endpoint and I assume the server has a way of querying this.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions