https://prefect.io logo
Title
s

Sudharshan B

08/10/2022, 12:11 PM
Hi! I'm facing error with using the for loop condition while using it in 'with Flow("flow_name") as flow' syntax and facing error as TypeError: object of type 'GetItem' has no len() How can I use the for loop inside the flow (Prefect v1.2.2). Any suggestions?
m

Mason Menges

08/10/2022, 4:29 PM
Hey @Sudharshan B you can accomplish similar functionality in prefect 1.0 with mapping, It's worth pointing out that 2.0 works much better with Native python and would be able to support For/while loops and other conditional arguments 😄.