https://prefect.io logo
t

Tony Yun

08/02/2023, 2:46 PM
Hi, in prefect2, what is the difference to
submit
a task and run a task like
task()
in a flow?
1
t

Tim-Oliver

08/02/2023, 3:33 PM
Running it as is will block. With
submit()
the task is submitted to the task-runner for execution and only if you ask for the result the flow will be blocked. This is useful if you want to run multiple tasks in parallel. Unless you use the
SequentialTaskRunner
in that case there is no difference.
🙌 1