https://prefect.io logo
#prefect-community
Title
# prefect-community
m

Muddassir Shaikh

03/15/2022, 12:56 PM
Can we create a task which runs before the flow ends, when all upstream task are successful. (without mentioning all upstream tasks name)
k

Kevin Kho

03/15/2022, 1:55 PM
I think you really need to either use
set_upstream
or
set_downstream
with the other tasks because if there is no dependency set, then it can be run in parallel. What does this task do? Your other option is to use a State Handler and run some code before the Flow ends but this is not a task
m

Muddassir Shaikh

03/15/2022, 2:01 PM
Here is my flow, with all upstreams task defined. When this whole flow is completed and marked successfull i want to shutdown my machine.
is there any way i can create a task which only runs at the end of flow when all task are successful.
k

Kevin Kho

03/15/2022, 2:10 PM
Not really. You can use a state handler for that. Ot you can use a resource manager and still will just down when all of those complete
5 Views