mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-19 21:40:24 +00:00
Merge pull request #12685 from CutieCat6778/patch-1
Skip loop iteration if train_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