1
0
Fork 0
mirror of synced 2024-09-30 09:18:14 +13:00

feat: add orchestration globally

This commit is contained in:
Christy Jacob 2022-02-28 18:15:10 +04:00
parent b4ee82ac88
commit a1f9019a3d

View file

@ -160,6 +160,7 @@ App::post('/v1/runtimes')
$stderr = '';
$startTime = \time();
$endTime = 0;
$orchestration = $orchestrationPool->get();
try {
Console::info('Building container : ' . $runtimeId);
@ -192,7 +193,6 @@ App::post('/v1/runtimes')
/**
* Create container
*/
$orchestration = $orchestrationPool->get();
$secret = \bin2hex(\random_bytes(16));
$vars = \array_merge($vars, [
'INTERNAL_RUNTIME_KEY' => $secret,