From 80abae2885d758ba1e5b5835e88d62b0b16701e6 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 5 Mar 2021 02:59:03 +0300 Subject: WorkerClient: add setTargetConcurrency() --- src/WorkerClient.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/WorkerClient.php b/src/WorkerClient.php index 7650df6..8b979af 100644 --- a/src/WorkerClient.php +++ b/src/WorkerClient.php @@ -48,4 +48,20 @@ class WorkerClient extends Client { ); } + /** + * @param string $target + * @param int $concurrency + * @return ResponseMessage + * @throws Exception + */ + public function setTargetConcurrency(string $target, int $concurrency): ResponseMessage + { + return $this->recv( + $this->sendRequest(new RequestMessage('set-target-concurrency', [ + 'target' => $target, + 'concurrency' => $concurrency + ])) + ); + } + } \ No newline at end of file -- cgit v1.2.3