hpcflow.sdk.monitoring.cache.write_cache#

hpcflow.sdk.monitoring.cache.write_cache(record, cache)#

Merge immutable states and atomically write zstd-compressed JSON.

Keep the historical lock name, merge concurrent observations under that lock, and remove the redundant legacy JSON only after a successful compressed write. ZIP workflows remain read-only and can reuse either embedded cache format.

Parameters:
Return type:

None