Skip to content

Implement asyncronous analytics API #13

Description

@mgdenno

Currently all metrics (e.g., KGE, NSE, etc.) are per-calculated with a predefined set of filters, thresholds, group-bys, etc. This was primarily done because the metrics calculations can take a long time to run depending on the complexity and data volume. Under this issue we will implement an asynchronous analytics API that allows users to submit requests and then be notified when results are ready.

Some initials concepts and thoughts:

  • We already use Prefect and Prefect has some capability to be used for this use case. We should consider this.
  • We have fairly robust Pydantic Model definitions for most (maybe all) metric requests. We should explore how these can be leveraged to build the API.

This issue needs more details.

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