SDK: artifacts work outside a node, run --follow prints status and queue waits, fluksio cancel

save_artifact/load_artifact outside a node use the worker's own store code in
$FLUKSIO_ARTIFACT_DIR or <tmp>/fluksio-artifacts, so a node can be called by
hand. --follow prints status changes and each node's resource wait; the
placer's waiting snapshot now carries the run. fluksio cancel <run>...
This commit is contained in:
2026-10-28 08:07:35 +01:00
parent 4c2df681d3
commit 34243e6902
14 changed files with 274 additions and 27 deletions
+3 -1
View File
@@ -79,6 +79,7 @@ class _Waiting:
node: str
since: float
reason: str
run: str = ""
class Placer:
@@ -333,7 +334,7 @@ class Placer:
"""
self._ticket += 1
ticket = self._ticket
self._waiting[ticket] = _Waiting(node=node, since=since, reason=reason)
self._waiting[ticket] = _Waiting(node=node, since=since, reason=reason, run=run)
logger.info("%s is %s", node or "a node", reason)
if self.events is not None:
self.events.publish(
@@ -407,6 +408,7 @@ class Placer:
"waiting": [
{
"node": entry.node,
"run": entry.run,
"reason": entry.reason,
"seconds": round(time.monotonic() - entry.since, 1),
}