mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
Skip loop iteration if train_queue is empty
Added a check to continue the loop if the training queue is empty.
This commit is contained in:
@@ -227,6 +227,10 @@ class IFreqaiModel(ABC):
|
||||
"""
|
||||
while not self._stop_event.is_set():
|
||||
time.sleep(1)
|
||||
|
||||
if not self.train_queue:
|
||||
continue
|
||||
|
||||
pair = self.train_queue[0]
|
||||
|
||||
# ensure pair is available in dp
|
||||
|
||||
Reference in New Issue
Block a user