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:
+2
-1
@@ -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'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user