hpcflow.sdk.monitoring.filtering.filter_templates#

hpcflow.sdk.monitoring.filtering.filter_templates(records, names, *, cached_only=False)#

Select records whose original template name exactly matches any supplied name.

Saved names work even when workflows are inaccessible. For older records with no saved name, read each workflow header at most once during this call and set template_name on the supplied records in memory. This function does not persist those changes. Unknown names do not match; None returns all records. Apply this filter before selecting recent history or observing scheduler jobs. cached_only disables metadata recovery for registry-only cached views; records with unknown saved template names do not match an explicit filter.

Parameters:
Return type:

list[SubmissionRecord]