Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
After the code changes in this PR, RE Manager is adding an identical prefix to each Redis key. The default prefix is
qs_default
(the parameter nameplan_queue
becomesqs_default_plan_queue
, etc.) A custom prefix can be passed using--redis-name-prefix
CLI parameter or theredis_name_prefix
parameter in thenetwork
section of the YML config file. A properly chosen prefix allows to easily distinguish between parameters created by the queue server and other applications using the same Redis server. Two instance of RE Manager using different prefix can share the same Redis server. (It is still recommended that the Redis server is running on the same machine as RE Manager).RE Manager can still used old names without prefix. Do configure RE Manager to key names without prefix, pass
""
(empty string) to the--redis-name-prefix
CLI parameter or setnetwork/redis_name_prefix
key in the YML config file.Motivation and Context
The motivations for the change:
qs_unit_tests
key prefix, so running unit tests do not change the plan queue and history used for manual testing and development on the same machine (each unit test clears the plan queue and history before and after the test).Summary of Changes for Release Notes
Fixed
Added
qs_default
. Custom prefix can be passed with--redis-name-prefix
CLI parameter or set asnetwork/redis_name_prefix
parameter in YML config file.Changed
qs_default
prefix to each Redis key. To access plan queue and history created by older versions of RE Manager, pass""
(empty string) to--redis-name-prefix
CLI parameter ornetwork/redis_name_prefix
parameter in the YML config file.Removed
How Has This Been Tested?
Unit tests were added. The existing unit tests were modified.