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
@@ -172,8 +172,9 @@ export class RunWorkflowJob {
private async throttleExecution(workflowId: string) {
try {
await this.throttlerService.throttle(
await this.throttlerService.tokenBucketThrottleOrThrow(
`${workflowId}-workflow-execution`,
1,
this.twentyConfigService.get('WORKFLOW_EXEC_THROTTLE_LIMIT'),
this.twentyConfigService.get('WORKFLOW_EXEC_THROTTLE_TTL'),
);