Edit workflow and serverless throttling (#15648)

Serverless:  1000 / min.

Workflows: 100 / min. This is a security in case of infinite loops.
This commit is contained in:
Thomas Trompette
2025-11-06 17:47:27 +01:00
committed by GitHub
parent 931d12c77b
commit 33c08ad437
4 changed files with 8 additions and 19 deletions
@@ -458,8 +458,9 @@ export class ServerlessFunctionService {
private async throttleExecution(workspaceId: string) {
try {
await this.throttlerService.throttle(
await this.throttlerService.tokenBucketThrottleOrThrow(
`${workspaceId}-serverless-function-execution`,
1,
this.twentyConfigService.get('SERVERLESS_FUNCTION_EXEC_THROTTLE_LIMIT'),
this.twentyConfigService.get('SERVERLESS_FUNCTION_EXEC_THROTTLE_TTL'),
);