From 6badf9a76bd2f71253c8235fc05fdd2ec1cf4d18 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 2 Mar 2021 23:55:18 +0300 Subject: MasterClient: add runManual() --- src/MasterClient.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.2.3