Skip to content

Commit e1369d4

Browse files
authored
Merge pull request #319 from dmgav/redis-db-index
Mention Redis database number in documentation
2 parents 29dc8c6 + c5821d9 commit e1369d4

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

bluesky_queueserver/manager/qserver_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ def formatter(prog):
14451445
dest="redis_addr",
14461446
type=str,
14471447
default="localhost",
1448-
help="The address of Redis server, e.g. 'localhost', '127.0.0.1', 'localhost:6379' "
1448+
help="The address of Redis server, e.g. 'localhost', '127.0.0.1', 'localhost:6379', 'localhost:6379/0'"
14491449
"(default: %(default)s). ",
14501450
)
14511451

bluesky_queueserver/manager/start_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def formatter(prog):
445445
dest="redis_addr",
446446
type=str,
447447
default="localhost",
448-
help="The address of Redis server, e.g. 'localhost', '127.0.0.1', 'localhost:6379' "
448+
help="The address of Redis server, e.g. 'localhost', '127.0.0.1', 'localhost:6379', 'localhost:6379/0'."
449449
"(default: %(default)s). ",
450450
)
451451

bluesky_queueserver/manager/tests/test_manager_options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ def test_manager_acq_with_0MQ_proxy(re_manager_cmd, zmq_proxy, zmq_dispatcher):
190190
@pytest.mark.parametrize("redis_addr, success", [
191191
("localhost", True),
192192
("localhost:6379", True),
193+
("localhost:6379/0", True),
193194
("localhost:6378", False)]) # Incorrect port.
194195
# fmt: on
195196
def test_manager_redis_addr_parameter(re_manager_cmd, redis_addr, success): # noqa: F811

docs/source/cli_tools.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ Other Configuration Parameters
339339
API request is received (default: ON_STARTUP)
340340
--redis-addr REDIS_ADDR
341341
The address of Redis server, e.g. 'localhost', '127.0.0.1',
342-
'localhost:6379' (default: localhost).
342+
'localhost:6379', 'localhost:6379/0' (default: localhost).
343343
--redis-name-prefix REDIS_NAME_PREFIX
344344
The prefix for the names of Redis keys used by RE Manager (default:
345345
qs_default).
@@ -891,7 +891,7 @@ address is different from default, the correct address must be passed using the
891891
-h, --help show this help message and exit
892892
--redis-addr REDIS_ADDR
893893
The address of Redis server, e.g. 'localhost', '127.0.0.1',
894-
'localhost:6379' (default: localhost).
894+
'localhost:6379', 'localhost:6379/0' (default: localhost).
895895
--redis-name-prefix REDIS_NAME_PREFIX
896896
The prefix for the names of Redis keys used by RE Manager (default:
897897
qs_default).

docs/source/manager_config.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ Parameters that define for network settings used by RE Manager:
166166
``--zmq-publish-console`` CLI parameter.
167167

168168
- ``redis_addr`` - the address of Redis server, e.g. ``localhost``, ``127.0.0.1``, ``localhost:6379``.
169-
The value may also be passed using ``--redis-addr`` CLI parameter.
169+
The address may also contain a Redis database number, e.g. ``localhost:6379/0``.
170+
Redis address may also be passed using ``--redis-addr`` CLI parameter.
170171

171172
- ``redis_name_prefix`` - the prefix is appended to the Redis keys to differentiate between keys
172173
created by different instances of RE Manager. The value may also be passed using

0 commit comments

Comments
 (0)