Skip to content

Conversation

mcucchi9
Copy link
Collaborator

@mcucchi9 mcucchi9 commented Aug 27, 2025

This PR implements per-dataset rate limits on the following endpoints:

  • POST /processes/{process_id}/execution;
  • POST /processes/{process_id}/constraints;
  • POST /processes/{process_id}/costing

The rate limits configuration file should now specify rate limits for the mentioned route in this way:

default:
    post:
       api: ["1/minute"]
       ui: ...
\processes\{process_id}\execution:
   default: # optional, if not present the default value is the one defined at route-level
      post: 
         api: ["1/second"]
   process_id_1: # optional, e.g. reanalysis-era5-single-levels. If not present, applies "default" values
      post: 
         api: ["2/second"]

The rate limits specification for all the other routes remains unchanged.

@mcucchi9 mcucchi9 requested a review from malmans2 August 27, 2025 15:37
@mcucchi9 mcucchi9 self-assigned this Aug 27, 2025
@mcucchi9 mcucchi9 requested a review from keul August 29, 2025 15:03
@mcucchi9 mcucchi9 merged commit 6090d10 into main Sep 1, 2025
9 checks passed
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