d61cbc3fc1ef837677c5402b564a30671c9e140f,tests/integration_tests/flows/common.py,,stop_mindsdb,#Any#,187
Before Change
sp = subprocess.Popen("kill -9 $(lsof -t -i:47335)", shell=True)
sp.wait()
sp = subprocess.Popen("kill -9 $(lsof -t -i:47336)", shell=True)
sp.wait()
def run_environment(config, apis=["mysql"], override_integration_config={}, override_api_config={}, mindsdb_database="mindsdb", clear_storage=True):
temp_config_path = prepare_config(config, mindsdb_database, override_integration_config, override_api_config, clear_storage)
After Change
if sp:
sp.kill()
conns = net_connections()
pids = [x.pid for x in conns
if x.pid is not None and x.status == "LISTEN"
and x.laddr[1] in (47334, 47335, 47336)]
for pid in pids:
try:
os.kill(pid, 9)
// process may be killed by OS due to some reasons in that moment
except ProcessLookupError:
pass
// sp = subprocess.Popen("kill -9 $(lsof -t -i:47334)", shell=True)
// sp.wait()
// sp = subprocess.Popen("kill -9 $(lsof -t -i:47335)", shell=True)
// sp.wait()
// sp = subprocess.Popen("kill -9 $(lsof -t -i:47336)", shell=True)
// sp.wait()
def run_environment(config, apis=["mysql"], override_integration_config={}, override_api_config={}, mindsdb_database="mindsdb", clear_storage=True):
temp_config_path = prepare_config(config, mindsdb_database, override_integration_config, override_api_config, clear_storage)
config = Config(temp_config_path)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: mindsdb/mindsdb
Commit Name: d61cbc3fc1ef837677c5402b564a30671c9e140f
Time: 2020-12-23
Author: ilya@mindsdb.com
File Name: tests/integration_tests/flows/common.py
Class Name:
Method Name: stop_mindsdb
Project Name: automl/auto-sklearn
Commit Name: 7098738c9f3c41120cffcce7a76fa7e8e86df4ec
Time: 2015-10-02
Author: feurerm@informatik.uni-freiburg.de
File Name: test/automl/test_start_automl.py
Class Name: AutoMLTest
Method Name: test_automl_outputs
Project Name: deepfakes/faceswap
Commit Name: 2b4ae91b02d0b3b42e2a634c4f432df6d20d3b7c
Time: 2018-11-04
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/wrapper.py
Class Name: FaceswapControl
Method Name: terminate
Project Name: automl/auto-sklearn
Commit Name: 7098738c9f3c41120cffcce7a76fa7e8e86df4ec
Time: 2015-10-02
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/automl.py
Class Name: AutoML
Method Name: _fit