Dynamically Generating DAGs in Airflow

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024

ความคิดเห็น • 15

  • @magicgoku
    @magicgoku ปีที่แล้ว +2

    Finally dynamic DAG creation made simple in this video! Thank you!

    • @Astronomer
      @Astronomer  ปีที่แล้ว

      Glad it was helpful!

  • @talnagar
    @talnagar 3 ปีที่แล้ว +1

    thanks for the great talk. We'll be happy to hear more about dynamic tasks creation, especially ones that are effected from the results of previous tasks in the DAG.

  • @joshuaisland501
    @joshuaisland501 3 ปีที่แล้ว +1

    Really useful and very clearly explained. Thanks!

  • @397rohit
    @397rohit 3 ปีที่แล้ว +1

    Thank you so much
    This is what i was looking for
    Can we have more sessions like these?

  • @mobeenmehdi8722
    @mobeenmehdi8722 3 ปีที่แล้ว +1

    Thanks for this great content. Much Appreciated :)

  • @jayeshprimomahajan6787
    @jayeshprimomahajan6787 2 ปีที่แล้ว +2

    This was helpful. Thanks

    • @Astronomer
      @Astronomer  ปีที่แล้ว +1

      Glad it was helpful!

  • @felipegsantos
    @felipegsantos 3 ปีที่แล้ว

    Thanks for the talk, great content.

  • @fanzhang8823
    @fanzhang8823 ปีที่แล้ว

    I saved all dags, each dag has multiple tasks with dependency definition into a single config file, each dag has its own scheduler, each task has this own customer handler. I could dynamically all dags pretty well. Only challenge is my tasks in dags are queued even I put None or @once for schedule_interval

    • @Astronomer
      @Astronomer  ปีที่แล้ว

      Hmmmm, are you manually triggering the dags?

  • @aditya234567
    @aditya234567 19 วันที่ผ่านมา

    Say I have a dag run happening and dynamically I updated the dag tasks.. Will it break the existing dag run? Say that particular dag run has 10 tasks to do, and I update dag when it's doing 1st task. Will it implement old tasks and newly run dag run implement new updated tasks??

  • @TheKaluve
    @TheKaluve 3 ปีที่แล้ว

    thank you for this tutorial ! I followed the 1st method of generating the DAGs (single file) and I see the DAGs being generated on the UI but when I try to run it, I see an error from the executor which says "airflow.exceptions.AirflowException: dag_id could not be found: . Either the dag did not exist or it failed to parse."
    Even though the code below adds the dag to the global scope, I am wondering why it is NOT able to find the dag that has been generated when I try to run it:
    globals()[dag_id] = create_dag(dag_id,
    schedule,
    dag_number,
    default_args)
    I am not able to figure out why the executor is NOT able to find the dag that has been generated.

  • @akshaymonga
    @akshaymonga 3 ปีที่แล้ว

    thank you

  • @shiva_310r6
    @shiva_310r6 2 ปีที่แล้ว

    Is there any wat to get list of dag id using python ?