summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/WorkerClient.php16
1 files changed, 16 insertions, 0 deletions
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