mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-15 12:10:12 +02:00
Add TODO for system redis channel
This commit is contained in:
parent
803404726d
commit
d466d3ab47
1 changed files with 5 additions and 0 deletions
|
|
@ -151,6 +151,11 @@ async def redis_get(key: str) -> str:
|
|||
return v.decode("utf-8")
|
||||
|
||||
|
||||
# TODO
|
||||
# idea is to have a second redis channel called system, that the API subscribes to. If for example
|
||||
# the 'state' value gets changed by the _cache.sh script, it should publish this to this channel
|
||||
# so the API can forward the change to thru the SSE to the WebUI
|
||||
|
||||
class SSE:
|
||||
SYSTEM_INFO = "system_info"
|
||||
HARDWARE_INFO = "hardware_info"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue