https://prefect.io logo
s

Sander

05/31/2022, 1:20 PM
Hi, there is this LOOP construct in 1.2. I was wondering when that will become available in 2.0. Thanks!
k

Kevin Kho

05/31/2022, 2:19 PM
You don’t need it because you can have while loops now in 2.0
Copy code
@flow
def loop():
    cond = condition()
    while cond:
        r = run_task()
        cond = r.result()
s

Sander

05/31/2022, 5:30 PM
Thanks! I think I should've known:)
2 Views