add _perform_launcher

This commit is contained in:
tef 2022-01-26 07:27:22 -05:00
parent 10430d9aa5
commit a66a535600

View File

@ -1,10 +1,15 @@
import subprocess
import threading
IS_BACKTEST = False
EXECUTION_PATH = "/root/workspace/execution/"
def launcher(mode, coin, brain):
threading.Thread(target=launcher, args=(mode, coin, brain)).start()
def _perform_launcher(mode, coin, brain):
subprocess.call("python3 "+EXECUTION_PATH+"launcher.py " + mode + " " + coin + " " + brain, shell=True)
def back_tester(date_time, coin, brain):