Bring back sleep - it'll ensure we give up control over the thread.

This commit is contained in:
Matthias 2022-09-19 07:14:33 +02:00
parent 470d5d8405
commit d930931000
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ class IFreqaiModel(ABC):
:param strategy: IStrategy = The user defined strategy class
"""
while not self._stop_event.is_set():
time.sleep(1)
pair = self.train_queue[0]
# ensure pair is avaialble in dp