fluksio.arrived(): a node can tell which inputs the wave behind it wrote, so a value written again unchanged is seen

This commit is contained in:
2026-11-05 21:24:21 +01:00
parent b7f1d21712
commit 7ddf8aa8f9
9 changed files with 127 additions and 7 deletions
+10
View File
@@ -38,6 +38,7 @@ __all__ = [
"FLOWS",
"Flow",
"Port",
"arrived",
"build",
"emit",
"load_artifact",
@@ -60,6 +61,15 @@ def emit(**ports: Any) -> None:
logger.debug("fluksio.emit(%s) outside a node", ", ".join(ports))
def arrived() -> set[str] | None:
"""The input ports the message that started this run wrote.
Outside a node nothing started it, so this cannot say and returns None,
the same answer a node gets when its flow starts.
"""
return None
def _local_store() -> Any:
"""The worker's own artifact code, pointed at a directory of this machine.