Rename mapper: flow/namespace.py maps state keys, work items and alert dedup keys from an old flow key to a new one; the state key families and WorkItem fields are registered there, the key builders take their prefixes from it, and done markers read back with queue.done_marker

This commit is contained in:
2026-11-02 19:28:25 +01:00
parent fd637e0f1e
commit ebcc480a8c
6 changed files with 389 additions and 10 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ from typing import TYPE_CHECKING, Any
from fluksio.flow import logs
from fluksio.flow.messages import MessageSpec, qualify
from fluksio.flow.namespace import NODE_STATE
from fluksio.flow.supervision import Supervisor
if TYPE_CHECKING:
@@ -283,7 +284,7 @@ class Node:
# -------------------------------------------------------------------------
def _state_key(self, key: str) -> str:
return f"__node__:{self.id}:{key}"
return f"{NODE_STATE}:{self.id}:{key}"
def remember(self, key: str, value: Any) -> None:
"""Keep a value for the next run of this node."""