Update to use protected container class
This commit is contained in:
parent
a9e7b617c0
commit
4d2f5428a2
1 changed files with 8 additions and 9 deletions
|
@ -384,7 +384,7 @@ class FunctionsV1 extends Worker
|
||||||
$value = strval($value);
|
$value = strval($value);
|
||||||
});
|
});
|
||||||
|
|
||||||
$response = $orchestration->run(
|
$id = $orchestration->run(
|
||||||
$runtime['image'],
|
$runtime['image'],
|
||||||
$container,
|
$container,
|
||||||
"",
|
"",
|
||||||
|
@ -404,14 +404,13 @@ class FunctionsV1 extends Worker
|
||||||
|
|
||||||
$executionEnd = \microtime(true);
|
$executionEnd = \microtime(true);
|
||||||
|
|
||||||
$list[$container] = new Container();
|
$list[$container] = new Container($container,
|
||||||
|
$id,
|
||||||
$list[$container]->name = $container;
|
"Up",
|
||||||
$list[$container]->status = "Up";
|
array(
|
||||||
$list[$container]->labels = array(
|
|
||||||
'appwrite-type' => 'function',
|
'appwrite-type' => 'function',
|
||||||
'appwrite-created' => "{$executionTime}",
|
'appwrite-created' => "{$executionTime}",
|
||||||
);
|
));
|
||||||
|
|
||||||
Console::info("Function created in " . ($executionEnd - $executionStart) . " seconds");
|
Console::info("Function created in " . ($executionEnd - $executionStart) . " seconds");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue