From 147564eab20659a693a477400bc948164c8ae716 Mon Sep 17 00:00:00 2001 From: MoonGem <34537029+MoonGem@users.noreply.github.com> Date: Sun, 25 Mar 2018 07:44:18 -0500 Subject: [PATCH] Delete random.py --- scripts/random.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 scripts/random.py diff --git a/scripts/random.py b/scripts/random.py deleted file mode 100644 index 91fb2de3a..000000000 --- a/scripts/random.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python3 -import os -import multiprocessing -from itertools import zip_longest -import subprocess -import re -PROC_COUNT = multiprocessing.cpu_count() - 1 -cwd = os.getcwd() -print(cwd) - - -limit = multiprocessing.cpu_count() - 1 -WORK_DIR = os.path.join( - os.path.sep, - os.path.abspath(os.path.dirname(__file__)), - '..', 'freqtrade', 'main.py' -) - -# Spawn workers -command = [ - 'python3.6', - WORK_DIR, - 'backtesting', -] -global current -current = 0 - -while True: - def Run(command): - global current - processes = [subprocess.Popen(command) for i in range(PROC_COUNT)] - for proc in processes: - wait = proc.communicate() - data = Run(command)