Skip to content

Feature Request:JobCount() client function #1017

@danieljosephchambers

Description

@danieljosephchambers

There's a nice JobList method on the client that can be used to get back a slice of all jobs, according to some provided params (kind, state etc).

I've been using this - but just to get a count of the number of jobs of each kind in each state (I've made a prometheus metrics Collector that keeps track of the number of jobs by kind and state).

This is quite a heavy query as it's returning the whole JobRow - which includes a bunch of fields I don't really care about for this narrow purpose.

It'd be great if there were a lighter weight JobCount method that would just return a count of the number of jobs according to the parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions