From 6589671f029d2db3bc110ca0098ed4509c698313 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 7 May 2021 23:01:11 +0300 Subject: jobd: support 'name' config option --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index acde972..046dd2b 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ time already, and proven to be stable and efficient. - [remove-target(target: string)](#remove-targettarget-string) - [set-target-concurrency(target: string, concurrency: int)](#set-target-concurrencytarget-string-concurrency-int) - [jobd-master requests](#jobd-master-requests) - - [register-worker(targets: string[])](#register-workertargets-string) + - [register-worker(targets: string[], name: string)](#register-workertargets-string-name-string) - [poke(targets: string[])](#poketargets-string) - [pause(targets: string[])](#pausetargets-string-1) - [continue(targets: string[])](#continuetargets-string-1) @@ -411,6 +411,7 @@ Without section: - `always_allow_localhost` *(boolean, default: `false`)* — when set to `1` or `true`, allows accepting requests from clients connecting from localhost without password +- `name` *(string, default: `os.hostname()`)* — worker name - `master_host` *(string)* — master hostname - `master_port` *(int)* — master port. If hostname or port is omitted, jobd will not connect to master. @@ -608,8 +609,8 @@ Here is the list of supported requests, using `type(arguments)` notation. #### jobd-master requests -* ##### `register-worker(targets: string[])` - Used by a jobd instance to register itself with master. Clients don't need it. +* ##### `register-worker(targets: string[], name: string)` + Used by jobd instances to register themselves with master. Clients don't need it. * ##### `poke(targets: string[])` Send [`poll(targets)`](#polltargets-string) requests to all registered workers that serve specified -- cgit v1.2.3