Skip to content

Conversation

@jcass8695
Copy link

@jcass8695 jcass8695 commented Oct 30, 2025

Addresses #1017. In our organisation we would like to be able to have a regular metric published with the count of jobs in each state for monitoring purposes.

@brandur
Copy link
Contributor

brandur commented Oct 31, 2025

We don't normally expose driver functions like this without strong justification. In this case, counting can somewhat unintuitively become a bit of a problem because it can be very slow when dealing with enormous numbers of rows.

@jcass8695
Copy link
Author

We don't normally expose driver functions like this without strong justification. In this case, counting can somewhat unintuitively become a bit of a problem because it can be very slow when dealing with enormous numbers of rows.

Hey @brandur, thanks for taking a look at this change so promptly. The motivation is that we would like to be able to publish a metric on the number of jobs in each state. If this isn't something that you and the other maintainers would like to expose through the client then it's not something critically important for us but it would be a nice to have. Lmk your thoughts.

@jcass8695 jcass8695 marked this pull request as ready for review October 31, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants