else:
return 1
with self.ManagedSessionMaker() as session:
now = int(time.time() * 1000)
for attempt in range(self.CREATE_MODEL_VERSION_RETRIES):
try:
sql_registered_model = self._get_registered_model(session, name)
model_version = SqlModelVersion(name=name,
After Change
else:
return 1
with self.ManagedSessionMaker() as session:
creation_time = now()
for attempt in range(self.CREATE_MODEL_VERSION_RETRIES):
try:
sql_registered_model = self._get_registered_model(session, name)
sql_registered_model.last_updated_time = creation_time