fc2489503f54d6ca607286510540a3ba3acbb98d,tests/storages_tests/rdb_tests/test_storage.py,,test_fail_stale_trials,#,329
Before Change
storage.record_heartbeat(trial._trial_id)
time.sleep(grace_period + 1)
t = study.trials[0]
assert t.state is TrialState.RUNNING
// Exceptions raised in spawned threads are caught by `_TestableThread`.
with patch("optuna._optimize.Thread", _TestableThread):
After Change
storage.heartbeat_interval = heartbeat_interval
storage.grace_period = grace_period
study1 = create_study(storage=storage)
study2 = create_study(storage=storage)
trial = study1.ask()
storage.record_heartbeat(trial._trial_id)
time.sleep(grace_period + 1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pfnet/optuna
Commit Name: fc2489503f54d6ca607286510540a3ba3acbb98d
Time: 2021-02-08
Author: gohome.x105.gn@gmail.com
File Name: tests/storages_tests/rdb_tests/test_storage.py
Class Name:
Method Name: test_fail_stale_trials
Project Name: pfnet/optuna
Commit Name: d3196bee4759550bc2e944a945881013157669ef
Time: 2020-06-25
Author: skripniuk.v@yandex.ru
File Name: examples/tensorboard_simple.py
Class Name:
Method Name:
Project Name: pfnet/optuna
Commit Name: 2eca0af3d781ec00cadbbda624218b2a8c508fa8
Time: 2018-08-21
Author: toshihiko.yanase@gmail.com
File Name: tests/storages_tests/test_storages.py
Class Name:
Method Name: test_get_study_id_from_name_and_get_study_name_from_id