mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Default limit for function conatiner is 1 cpu
This commit is contained in:
@@ -641,7 +641,6 @@ App::post('/v1/functions/:functionId/executions')
|
||||
throw new Exception('Failed saving execution to DB', 500);
|
||||
}
|
||||
|
||||
// Issue a TLS certificate when domain is verified
|
||||
Resque::enqueue('v1-functions', 'FunctionsV1', [
|
||||
'projectId' => $project->getId(),
|
||||
'functionId' => $function->getId(),
|
||||
|
||||
@@ -378,7 +378,7 @@ class FunctionsV1
|
||||
$exitCode = Console::execute("docker run \
|
||||
-d \
|
||||
--entrypoint=\"\" \
|
||||
--cpus=4 \
|
||||
--cpus=1 \
|
||||
--memory=128m \
|
||||
--memory-swap=128m \
|
||||
--rm \
|
||||
@@ -408,8 +408,6 @@ class FunctionsV1
|
||||
],
|
||||
];
|
||||
|
||||
var_dump($list);
|
||||
|
||||
Console::info("Function created in " . ($executionEnd - $executionStart) . " seconds with exit code {$exitCode}");
|
||||
}
|
||||
else {
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user