Andrew Rosen
01/09/2024, 11:53 PMFlow
without it blocking?
from prefect import flow, task
@task
def add(a, b):
return a + b
@flow
def workflow(a, b, c):
return add.submit(add.submit(a, b), c)
workflow(1, 2, 3)
this blocks until workflow(1,2,3)
is complete, even when I assign a task_runner
explicitly to the @flow
Nate
01/10/2024, 12:15 AMAndrew Rosen
01/10/2024, 12:17 AMFlow
have methods like .is_completed()
though if it always is blocking, and how in practice do you run multiple `Flow`s concurrently? I think I am missing something fundamental here since I imagine users must be interested in parallelization of flows and not just tasks within a flow.Nate
01/10/2024, 12:19 AMNate
01/10/2024, 12:20 AMNate
01/10/2024, 12:20 AMAndrew Rosen
01/10/2024, 12:20 AMAndrew Rosen
01/10/2024, 12:21 AMNate
01/10/2024, 12:21 AM