Thread
#prefect-community
    Muddassir Shaikh

    Muddassir Shaikh

    6 months ago
    Can we create a task which runs before the flow ends, when all upstream task are successful. (without mentioning all upstream tasks name)
    Kevin Kho

    Kevin Kho

    6 months ago
    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
    Muddassir Shaikh

    Muddassir Shaikh

    6 months ago
    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.
    Kevin Kho

    Kevin Kho

    6 months ago
    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