Thomas Hoeck
04/27/2021, 10:15 AM.map()
. The problem is that when I run it the results are all still stored in memory (bigger_than_mem
runs twice and keep resuslt in memory). Is it possible to have the flow the the data as a file, and clear the memory? Here is a sample flow
@task
def get_chunks():
return [[1,2],[3,4,5]]
@task
def bigger_than_mem(x):
return x*100000000
@task
def dump_to_db(x)
dumb(x)
with Flow("my_flow") as flow:
x = get_chunks()
x_trans = bigger_than_mem.map(x)
dump_to_db.map(x_trans)
Kevin Kho
Jenny
04/27/2021, 1:30 PMThomas Hoeck
04/28/2021, 1:35 PMKevin Kho
StartFlowRun
task.Thomas Hoeck
06/01/2021, 8:46 AM