Thread
#prefect-community
    Atul Anand

    Atul Anand

    5 months ago
    Just want to from which API can I create a dependent task? , A, B,C,D like these are my task and D task need to be executed when A and B task fails and C task will be executed with the input results of A and B.
    Amanda Wee

    Amanda Wee

    5 months ago
    You can set D as having A and B as upstream tasks, along with a trigger for it to execute when A and B fail (maybe
    all_failed
    or
    any_failed
    ). For C, you just write it with the results of A and B as arguments.
    Atul Anand

    Atul Anand

    5 months ago
    Thanks @Amanda Wee
    @Amanda Wee ! Gone through the examples. Worked perfectly! But not able to pass the argument while using upstream.
    Amanda Wee

    Amanda Wee

    5 months ago
    I suggest showing a simplified code example here, then someone might be able to help you get it to work.
    Kevin Kho

    Kevin Kho

    5 months ago
    Could you show me what you tried? I can see why it would be tricky