CosmoTech_Acceleration_Library.Modelops.core.common.graph_handler¶
GraphHandler
¶
Bases: RedisHandler
Class that handle Graph Redis information
Source code in CosmoTech_Acceleration_Library/Modelops/core/common/graph_handler.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
do_if_graph_exist(function)
¶
Function decorator that run the function annotated if graph exists :param function: the function annotated
Source code in CosmoTech_Acceleration_Library/Modelops/core/common/graph_handler.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
handle_graph_replace(func)
¶
Decorator to do stuff then handle graph rotation (delete the oldest graph if the amount of graph is greater than graph rotation)
Source code in CosmoTech_Acceleration_Library/Modelops/core/common/graph_handler.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|