Fixed not looping, hang
This commit is contained in:
parent
0b5397e77d
commit
195dbf7807
@ -47,10 +47,10 @@ print("Starting pp with", job_server.get_ncpus(), "workers")
|
|||||||
|
|
||||||
|
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
i = 0
|
||||||
for index in range(parts):
|
while parts < i:
|
||||||
|
i += 1
|
||||||
jobs.append(job_server.submit(backtesting, (index,)))
|
jobs.append(job_server.submit(backtesting, (index,)))
|
||||||
# print(index)
|
|
||||||
while True:
|
while True:
|
||||||
for job in jobs:
|
for job in jobs:
|
||||||
try:
|
try:
|
||||||
@ -88,4 +88,5 @@ while True:
|
|||||||
job_server.print_stats()
|
job_server.print_stats()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
print('Searching... in loop')
|
print('Searching... in loop... waiting 30s')
|
||||||
|
time.sleep(30)
|
||||||
|
Loading…
Reference in New Issue
Block a user