hpcflow.sdk.monitoring.cache#

Incremental terminal action state cache and compact display snapshots.

Functions

cache_path

Return the submission-scoped tmp/terminal_states.json.zst path without creating it.

read_cache

Read valid terminal states for the record's workflow and submission.

refresh_actions

Refresh unresolved runs and reuse immutable terminal states from disk.

run_ids

Return the submission part's distinct action-run IDs in first-seen job order.

select_states

Combine terminal states and fresh queued-parent evidence before opening a workflow.

snapshot

Build a compact action summary for the requested run IDs.

write_cache

Merge immutable states and atomically write zstd-compressed JSON.

Classes

StateSelection

Cached/derived observations and the remaining IDs that need store reads.