hpcflow.sdk.core.cache.ObjectCache#
- class hpcflow.sdk.core.cache.ObjectCache(elements=None, iterations=None, runs=None, run_dependencies=None, run_dependents=None, iter_run_dependencies=None, iter_iter_dependencies=None, elem_iter_dependencies=None, elem_elem_dependencies=None, elem_elem_dependents=None, elem_elem_dependents_rec=None)#
Bases:
object
Class to bulk-retrieve and store elements, iterations, runs and their various dependencies.
Methods
Build a cache instance.
Attributes
What elements (by ID) a given element depends on.
What elements (by ID) are depending on a given element.
Transitive closure of
elem_elem_dependents
.What iterations (by ID) a given element depends on.
The elements of the workflow that this cache was built from.
What iterations (by ID) a given iteration depends on.
What EARs (by ID) a given iteration depends on.
The iterations of the workflow that this cache was built from.
What EARs (by ID) a given EAR depends on.
What EARs (by ID) are depending on a given EAR.
The runs of the workflow that this cache was built from.
- Parameters:
iterations (list[ElementIteration] | None) –
runs (list[ElementActionRun] | None) –
- classmethod build(workflow, dependencies=False, elements=False, iterations=False, runs=False)#
Build a cache instance.
- elem_elem_dependencies: dict[int, set[int]] | None = None#
What elements (by ID) a given element depends on.
- elem_elem_dependents: dict[int, set[int]] | None = None#
What elements (by ID) are depending on a given element.
- elem_elem_dependents_rec: dict[int, set[int]] | None = None#
Transitive closure of
elem_elem_dependents
.
- elem_iter_dependencies: dict[int, set[int]] | None = None#
What iterations (by ID) a given element depends on.
- iter_iter_dependencies: dict[int, set[int]] | None = None#
What iterations (by ID) a given iteration depends on.
- iter_run_dependencies: dict[int, set[int]] | None = None#
What EARs (by ID) a given iteration depends on.
- iterations: list[ElementIteration] | None = None#
The iterations of the workflow that this cache was built from.
- runs: list[ElementActionRun] | None = None#
The runs of the workflow that this cache was built from.