We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1689ab6 commit fd56311Copy full SHA for fd56311
pkg/workloads/cortex/lib/model/cron.py
@@ -1236,6 +1236,9 @@ def _load_local_models(self) -> None:
1236
)
1237
self._reset_when_tfs_unresponsive()
1238
return None
1239
+ self._old_ts_state[f"{model_name}-{model_version}"] = int(
1240
+ datetime.datetime.now(datetime.timezone.utc).timestamp()
1241
+ )
1242
1243
def _is_this_a_newer_model_id(self, model_id: str, timestamp: int) -> bool:
1244
return model_id in self._old_ts_state and self._old_ts_state[model_id] < timestamp
0 commit comments