feat: app rate limit (#5844)
Co-authored-by: liuzhenghua-jk <liuzhenghua-jk@360shuke.com> Co-authored-by: takatost <takatost@gmail.com>
This commit is contained in:
parent
cc8dc6d35e
commit
9622fbb62f
19 changed files with 277 additions and 56 deletions
|
|
@ -31,6 +31,10 @@ class AppExecutionConfig(BaseSettings):
|
|||
description='execution timeout in seconds for app execution',
|
||||
default=1200,
|
||||
)
|
||||
APP_MAX_ACTIVE_REQUESTS: NonNegativeInt = Field(
|
||||
description='max active request per app, 0 means unlimited',
|
||||
default=0,
|
||||
)
|
||||
|
||||
|
||||
class CodeExecutionSandboxConfig(BaseSettings):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue