diff --git a/media/basic/.gitignore b/media/basic/.gitignore deleted file mode 100644 index 0baf103..0000000 --- a/media/basic/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -# Ignore everything in this directory -* - -# Except this file -!.gitignore \ No newline at end of file diff --git a/v2realbot/config.py b/v2realbot/config.py index 9d23dcc..5717e89 100644 --- a/v2realbot/config.py +++ b/v2realbot/config.py @@ -6,9 +6,9 @@ from pathlib import Path #directory for generated images and basic reports MEDIA_DIRECTORY = Path(__file__).parent.parent.parent / "media" +#location of strat.log - it is used to fetch by gui LOG_FILE = Path(__file__).parent.parent / "strat.log" - #'0.0.0.0', #currently only prod server has acces to LIVE PROD_SERVER_HOSTNAMES = ['tradingeastcoast','David-MacBook-Pro.local'] #,'David-MacBook-Pro.local' diff --git a/v2realbot/controller/services.py b/v2realbot/controller/services.py index 3b075a1..fac1ec8 100644 --- a/v2realbot/controller/services.py +++ b/v2realbot/controller/services.py @@ -37,7 +37,7 @@ from v2realbot.strategyblocks.indicators.indicators_hub import populate_dynamic_ from v2realbot.interfaces.backtest_interface import BacktestInterface import os from v2realbot.reporting.metricstoolsimage import generate_trading_report_image - +import gc #from pyinstrument import Profiler #adding lock to ensure thread safety of TinyDB (in future will be migrated to proper db) lock = Lock() @@ -524,6 +524,8 @@ def batch_run_manager(id: UUID, runReq: RunRequest, rundays: list[RunDay]): except Exception as e: print("Nepodarilo se vytvorit report image", str(e)+format_exc()) + gc.collect() + #stratin run def run_stratin(id: UUID, runReq: RunRequest, synchronous: bool = False, inter_batch_params: dict = None): if runReq.mode == Mode.BT: