1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

feat: update creation endpoint

This commit is contained in:
Christy Jacob 2022-02-06 13:37:50 +04:00
parent 132011102e
commit dea2873845

View file

@ -262,11 +262,11 @@ function execute(string $projectId, string $functionId, string $deploymentId, ar
Console::info('Executing function: ' . $functionId);
global $activeFunctions;
global $register;
$container = 'appwrite-function-' . $deploymentId;
/** Create a new runtime server if there's none running */
if (!$activeFunctions->exists($container)) {
Console::info("Runtime server for $deploymentId not running. Creating new one...");
createRuntimeServer($projectId, $deploymentId, $build, $vars, $baseImage, $runtime);
}