Hi everyone. In Prefect 1, is there a mechanism so...
# ask-community
t
Hi everyone. In Prefect 1, is there a mechanism so that one task starts after another one starts and both tasks run in parallel?
t
But, when we define upstream tasks, downstream tasks should wait until they finish right? What I need is always starting a task after a specific task starts but not finished yet.
d
Unsure if that is available. U can always use the prefect api to query for status of previous task within the downstream task and then run the actual code after ur requirements are met. That's all I have . 🤷 Best of luck.
👍 1
m
You can create a separate flow for your downstream task, and call start_run without waiting, this way you don’t have to wait on the upstream task to complete.. see https://docs-legacy.prefect.io/api/0.10.7/tasks/cloud.html#flowruntask
t
@Marwan Sarieddine thanks. It was what I was considering.
👍 1