From 22534d6a78cbb501dd479503dfd0ed4a1f4ebc20 Mon Sep 17 00:00:00 2001 From: Kavinkumar <33546454+mkavinkumar1@users.noreply.github.com> Date: Fri, 25 Feb 2022 11:54:24 +0530 Subject: [PATCH] Revert "Temporary fix to reload all strategies" This reverts commit 97bbc2381d0941e3d6fff150235f204e5f14a3c0. --- freqtrade/worker.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/freqtrade/worker.py b/freqtrade/worker.py index 1b23db594..66f718af0 100755 --- a/freqtrade/worker.py +++ b/freqtrade/worker.py @@ -3,7 +3,6 @@ Main Freqtrade worker class. """ import logging import time - import traceback from os import getpid from typing import Any, Callable, Dict, Optional @@ -177,14 +176,6 @@ class Worker: # Load and validate config and create new instance of the bot self._init(True) - # Todo Temporary fix to reload all strategies - from pathlib import Path - from freqtrade.resolvers.strategy_resolver import StrategyResolver - from freqtrade.constants import FTHYPT_FILEVERSION, USERPATH_STRATEGIES - - directory = Path(self._config.get('strategy_path', self._config['user_data_dir'] / USERPATH_STRATEGIES)) - strategy_objs = StrategyResolver.search_all_objects(directory, False) - self.freqtrade.notify_status('config reloaded') # Tell systemd that we completed reconfiguration