threads = []
for group in chunker(stock_list, 100):
pool = eventlet.greenpool.GreenPool()
pool.spawn(main, group)
threads.append(pool)
while (pool.running() == 1):
pass
print ("Gappers:", gapperlist)
threads = []
pool = eventlet.greenpool.GreenPool()
for group in chunker(stock_list, 100):
pool.spawn(main, group)
threads.append(pool)
while (pool.running() == 1):
pass
Next Step? ;)
OK, I tried it, it won't start the right process, but spawn some cpu-eating threads, which, however, don't do anything
@linuscl that are many issues with your code but I will give you a starting point: return gappers_list from main, then, in the end, push that list in some other global result list