feat: dynamic rate limits (#904)

* wip: step run expressions on rate limits

* feat: dynamic rate limits

* chore: v0.47.0

* chore: address changes from PR review

* fix: improved error handling

* address pr review

* better error messages for step run cels, remove debug logs

* fix: hash

---------

Co-authored-by: gabriel ruttner <gabriel.ruttner@gmail.com>
This commit is contained in:
abelanger5
2024-09-26 18:00:34 -04:00
committed by GitHub
parent 5f5e1e8a88
commit a1a10b4073
65 changed files with 9628 additions and 2203 deletions
+5 -1
View File
@@ -117,7 +117,11 @@ message CreateWorkflowStepOpts {
message CreateStepRateLimit {
string key = 1; // (required) the key for the rate limit
int32 units = 2; // (required) the number of units this step consumes
optional int32 units = 2; // (optional) the number of units this step consumes
optional string key_expr = 3; // (optional) a CEL expression for determining the rate limit key
optional string units_expr = 4; // (optional) a CEL expression for determining the number of units consumed
optional string limit_values_expr = 5; // (optional) a CEL expression for determining the total amount of rate limit units
optional RateLimitDuration duration = 6; // (optional) the default rate limit window to use for dynamic rate limits
}
// ListWorkflowsRequest is the request for ListWorkflows.