Skip to content

Commit

Permalink
chore: revert experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Oct 22, 2024
1 parent cfbd931 commit 419482a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,8 @@ function cleanUp(Orchestration $orchestration, Table $activeRuntimes, array $net
->inject('response')
->inject('request')
->inject('log')
->inject('orchestration')
->action(
function (string $runtimeId, ?string $payload, string $path, string $method, mixed $headers, int $timeout, string $image, string $source, string $entrypoint, mixed $variables, float $cpus, int $memory, string $version, string $runtimeEntrypoint, bool $logging, string $restartPolicy, Table $activeRuntimes, Response $response, Request $request, Log $log, Orchestration $orchestration) {
function (string $runtimeId, ?string $payload, string $path, string $method, mixed $headers, int $timeout, string $image, string $source, string $entrypoint, mixed $variables, float $cpus, int $memory, string $version, string $runtimeEntrypoint, bool $logging, string $restartPolicy, Table $activeRuntimes, Response $response, Request $request, Log $log) {
if (empty($payload)) {
$payload = '';
}
Expand Down Expand Up @@ -1244,14 +1243,7 @@ function (string $runtimeId, ?string $payload, string $path, string $method, mix
throw new Exception('Function timed out during cold start.', 400);
}

$output = '';

$online = $orchestration->execute(
name: $runtimeName,
command: ['sh', '-c', 'nc -zv localhost 3000'],
output: $output,
);

$online = $validator->isValid($hostname . ':' . 3000);
if ($online) {
break;
}
Expand Down

0 comments on commit 419482a

Please sign in to comment.