From d7f02fc72b6e60ad7fbc92dc2b6524cc54fbd597 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Wed, 10 Jul 2024 16:58:33 +0900 Subject: [PATCH] Update Executor.php --- src/Executor/Executor.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index 8452055068..999c905f28 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -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);