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

API for Eval.Count #15147

Merged
merged 1 commit into from
Nov 7, 2022
Merged

API for Eval.Count #15147

merged 1 commit into from
Nov 7, 2022

Commits on Nov 4, 2022

  1. API for Eval.Count

    Add a new `Eval.Count` RPC and associated HTTP API endpoints. This API is
    designed to support interactive use in the `nomad eval delete` command to get a
    count of evals expected to be deleted before doing so.
    
    The state store operations to do this sort of thing are somewhat expensive, but
    it's cheaper than serializing a big list of evals to JSON. Note that although it
    seems like this could be done as an extra parameter and response field on
    `Eval.List`, having it as its own endpoint avoids having to change the response
    body shape and lets us avoid handling the legacy filter params supported by
    `Eval.List`.
    tgross committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    ec9083a View commit details
    Browse the repository at this point in the history