Skip to content

Commit aa7aac3

Browse files
committed
feat: don't jump into parallel mode for single pair/timeframe downloads
1 parent 2015ccc commit aa7aac3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

freqtrade/data/history/history_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,10 @@ def refresh_backtest_ohlcv_data(
388388
for timeframe in timeframes:
389389
# Get fast candles via parallel method on first loop through per timeframe
390390
# and candle type. Downloads all the pairs in the list and stores them.
391+
# Also skips if only 1 pair/timeframe combination is scheduled for download.
391392
if (
392393
not no_parallel_download
394+
and (len(pairs) + len(timeframes)) > 2
393395
and exchange.get_option("download_data_parallel_quick", True)
394396
and (
395397
((pair, timeframe, candle_type) not in fast_candles)

0 commit comments

Comments
 (0)