From 59b239c128c4b0a1ad3c2769a99c0a46f96a05de Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 15 Jul 2024 14:11:08 +0900 Subject: [PATCH] Fix synchronous executions --- app/controllers/general.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 2f038893d2..39b5ec9bc4 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -272,7 +272,9 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo method: $method, headers: $headers, runtimeEntrypoint: $command, - requestTimeout: 30 + requestTimeout: 30, + cpus: $function->getAttribute('cpus', 1), + memory: $function->getAttribute('memory', 512) ); $headersFiltered = [];