summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-02 23:55:18 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-02 23:55:18 +0300
commit6badf9a76bd2f71253c8235fc05fdd2ec1cf4d18 (patch)
treec56ca884a372c940c154455031e23a7bfe780ea6 /src
parent673603ddb2071ce0d7eddc9a2492cde403e72dc9 (diff)
MasterClient: add runManual()
Diffstat (limited to 'src')
-rw-r--r--src/MasterClient.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/MasterClient.php b/src/MasterClient.php
index d2a8712..a804ce5 100644
--- a/src/MasterClient.php
+++ b/src/MasterClient.php
@@ -32,4 +32,16 @@ class MasterClient extends Client {
);
}
+ /**
+ * @param array[] $jobs
+ * @return ResponseMessage
+ * @throws \Exception
+ */
+ public function runManual(array $jobs): ResponseMessage
+ {
+ return $this->recv(
+ $this->sendRequest(new RequestMessage('run-manual', ['jobs' => $jobs]))
+ );
+ }
+
} \ No newline at end of file