maz
09/21/2021, 4:52 PMKevin Kho
@task
decorator
2. Use prefect’s map
operator
@task
def func1...
with Flow() as flow:
files = func1() # get files
transformed = func2().map(files)
write(transformed)
Something like thismaz
09/21/2021, 8:01 PMKevin Kho
load_data_to_db.map(s3_object=s3_objects, db_obj=unmapped(psi_db_obj), skip_first_row=unmapped(True))
Kevin Kho
unmapped
is from prefect import unmapped
.Kevin Kho
psi_db_obj
is not pickle-able, but just come back when that happens.