1
0
Fork 0
mirror of synced 2024-07-01 12:40:34 +12:00

feat: uncomment warmup

This commit is contained in:
Christy Jacob 2022-02-27 22:41:43 +04:00
parent 1404851015
commit f9f817958a

View file

@ -590,12 +590,12 @@ $http->on('start', function ($http) {
try {
$orchestration = $orchestrationPool->get();
Console::info('Warming up ' . $runtime['name'] . ' ' . $runtime['version'] . ' environment...');
// $response = $orchestration->pull($runtime['image']);
// if ($response) {
// Console::success("Successfully Warmed up {$runtime['name']} {$runtime['version']}!");
// } else {
// Console::warning("Failed to Warmup {$runtime['name']} {$runtime['version']}!");
// }
$response = $orchestration->pull($runtime['image']);
if ($response) {
Console::success("Successfully Warmed up {$runtime['name']} {$runtime['version']}!");
} else {
Console::warning("Failed to Warmup {$runtime['name']} {$runtime['version']}!");
}
} catch (\Throwable $th) {
} finally {
$orchestrationPool->put($orchestration);