fix: allow user to break training
This commit is contained in:
@@ -199,9 +199,16 @@ class IFreqaiModel(ABC):
|
|||||||
self.data_provider = None
|
self.data_provider = None
|
||||||
self._on_stop()
|
self._on_stop()
|
||||||
|
|
||||||
|
if self.freqai_info.get("wait_for_training_iteration_on_reload", True):
|
||||||
logger.info("Waiting on Training iteration")
|
logger.info("Waiting on Training iteration")
|
||||||
for _thread in self._threads:
|
for _thread in self._threads:
|
||||||
_thread.join()
|
_thread.join()
|
||||||
|
else:
|
||||||
|
logger.warning(
|
||||||
|
"Breaking current training iteration because "
|
||||||
|
"you set wait_for_training_iteration_on_reload to "
|
||||||
|
" False."
|
||||||
|
)
|
||||||
|
|
||||||
def start_scanning(self, *args, **kwargs) -> None:
|
def start_scanning(self, *args, **kwargs) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user