Hi, in prefect2, what is the difference to `submit...
# ask-community
t
Hi, in prefect2, what is the difference to
submit
a task and run a task like
task()
in a flow?
1
t
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