Skip to content

Commit 495cee3

Browse files
authored
Merge pull request #125 from AD-SDL/redis_password
Add support for redis passwords
2 parents 3c1b8cf + 1a1c6da commit 495cee3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ad_sdl.wei"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
description = "The Rapid Prototyping Laboratory's Workflow Execution Interface."
55
authors = [
66
{name = "Rafael Vescovi", email = "[email protected]"},

src/wei/core/state_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def _redis_client(self) -> Any:
5353
port=int(Config.redis_port),
5454
db=0,
5555
decode_responses=True,
56+
password=Config.redis_password if Config.redis_password else None,
5657
)
5758
return self._redis_connection
5859

src/wei/types/workcell_types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ class WorkcellConfig(BaseModel, extra="allow"):
8080
default="localhost", description="Hostname for the Redis server"
8181
)
8282
redis_port: int = Field(default=6379, description="Port for the Redis server")
83+
redis_password: str = Field(
84+
default="", description="Password for the Redis server, if any"
85+
)
8386
data_directory: PathLike = Field(
8487
default=Path.home() / ".wei",
8588
description="Directory to store data produced by WEI",

0 commit comments

Comments
 (0)