[Python] How can I make a task dependent on another, but also only run at a certain time?

Discussão em 'Python' iniciado por Stack, Janeiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    I have two tasks.

    1. T05:30 - I wish for this to run at 05:30 every day.
    2. T08:30 - I wish for this to run at 08:30 every day, but only if T05:30 has succeeded today.

    Can this be achieved in Airflow? It appears that dependencies (i.e. run T8:30 only if only if T05:30 has succeeded today) are a task-only concept but schedules (05:30 every day and 08:30 every day) are a DAG-only concept.

    I could hack this by checking variables or something external, but I'm hoping that there is an idiomatic solution to this.

    Continue reading...

Compartilhe esta Página