File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/api/frontend Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ def _render_card(
108108 _render_buttons (node_id , service )
109109
110110
111- def _get_stable_hash (model : TrackedServiceModel ) -> dict :
111+ def _get_clean_hashable (model : TrackedServiceModel ) -> dict :
112+ """removes items which trigger frequent updates and are not interesting to the user"""
112113 data = model .model_dump (mode = "json" )
113114 data .pop ("check_status_after" )
114115 data .pop ("last_status_notification" )
@@ -118,7 +119,7 @@ def _get_stable_hash(model: TrackedServiceModel) -> dict:
118119
119120def _get_hash (items : list [tuple [NodeID , TrackedServiceModel ]]) -> int :
120121 return hash (
121- json .dumps ([(f"{ key } " , _get_stable_hash (model )) for key , model in items ])
122+ json .dumps ([(f"{ key } " , _get_clean_hashable (model )) for key , model in items ])
122123 )
123124
124125
You can’t perform that action at this time.
0 commit comments