diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-02 23:55:18 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-02 23:55:18 +0300 |
commit | 6badf9a76bd2f71253c8235fc05fdd2ec1cf4d18 (patch) | |
tree | c56ca884a372c940c154455031e23a7bfe780ea6 | |
parent | 673603ddb2071ce0d7eddc9a2492cde403e72dc9 (diff) |
MasterClient: add runManual()
-rw-r--r-- | src/MasterClient.php | 12 |
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 |