6c71c2ee1a0d324b0da26950d1cb85a1a0b2f5e4,mlflow/store/model_registry/sqlalchemy_store.py,SqlAlchemyStore,delete_model_version,#SqlAlchemyStore#Any#,289

Before Change


        
        with self.ManagedSessionMaker() as session:
            sql_model_version = self._get_sql_model_version(session, model_version)
            session.delete(sql_model_version)

    def get_model_version_details(self, model_version):
        
        :param model_version: :py:class:`mlflow.entities.model_registry.ModelVersion` object.

After Change


        :return: None
        
        with self.ManagedSessionMaker() as session:
            updated_time = now()
            sql_model_version = self._get_sql_model_version(session, model_version)
            sql_registered_model = sql_model_version.registered_model
            sql_registered_model.last_updated_time = updated_time
            sql_model_version.current_stage = STAGE_DELETED_INTERNAL
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mlflow/mlflow
Commit Name: 6c71c2ee1a0d324b0da26950d1cb85a1a0b2f5e4
Time: 2019-10-30
Author: mani@databricks.com
File Name: mlflow/store/model_registry/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: delete_model_version


Project Name: pfnet/optuna
Commit Name: 99d865a01e53aee0dcf9406022fd1de2d0823f45
Time: 2021-01-14
Author: gohome.x105.gn@gmail.com
File Name: optuna/storages/_rdb/storage.py
Class Name: RDBStorage
Method Name: record_timestamp


Project Name: pfnet/optuna
Commit Name: 99d865a01e53aee0dcf9406022fd1de2d0823f45
Time: 2021-01-14
Author: gohome.x105.gn@gmail.com
File Name: optuna/storages/_rdb/storage.py
Class Name: RDBStorage
Method Name: kill_stale_trials