Probando si el servidor puede con threads
This commit is contained in:
@@ -70,7 +70,7 @@ def sanitize_keys(json):
|
|||||||
|
|
||||||
|
|
||||||
def parallel_map(items, function):
|
def parallel_map(items, function):
|
||||||
from multiprocessing import Pool
|
from multiprocessing.dummy import Pool
|
||||||
|
|
||||||
with Pool() as pool:
|
with Pool() as pool:
|
||||||
return pool.map(function, items)
|
return pool.map(function, items)
|
||||||
|
|||||||
Reference in New Issue
Block a user