feat: update creation endpoint
This commit is contained in:
parent
132011102e
commit
dea2873845
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue