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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user