Update Executor.php

This commit is contained in:
Bradley Schofield
2024-07-10 16:58:33 +09:00
parent 59e782c94d
commit d7f02fc72b
+2 -4
View File
@@ -24,10 +24,6 @@ class Executor
protected array $headers;
protected int $cpus;
protected int $memory;
public function __construct(string $endpoint)
{
if (!filter_var($endpoint, FILTER_VALIDATE_URL)) {
@@ -87,6 +83,8 @@ class Executor
'command' => $command,
'version' => $version,
'timeout' => $timeout,
'cpus' => $cpus,
'memory' => $memory,
];
$response = $this->call(self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout);