https://prefect.io logo
i

ibrahem

06/21/2022, 9:31 PM
Hi.. quick question can I have a task that returns a list of strings then from that list I'll loop over it and do some logic. the issue I have is
object is not iterable
is there anyway to return the result of a task as a normal python object list, dict and not a task (please note i don't know the length of list and its very dynamic)
z

Zanie

06/21/2022, 10:01 PM
It sounds like you’re looking for “mapping”: https://docs.prefect.io/core/concepts/mapping.html
1
2 Views