Airflow Dynamic DAGs: The powerful way with Jinja and YAML

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ม.ค. 2025

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

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

    Hey folk 👋
    Here is the updated video with the sound fixed: Dynamic DAGs in Apache Airflow for beginners
    th-cam.com/video/6eHuOd96unQ/w-d-xo.html
    Enjoy ❤

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

    thank you for the great tutorial again. I love the airflow series.

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

    Awesome content, thank you.

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

    awesome! that's what i was looking for)

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

    I believe, this method is much more reliable if you are going to generate multiple dags with different schedule intervals. I was using dynamic dag generation with globals()[dag_id]=dag, but if you are working with APIs or clients, scheduler & worker don't work as expected. Also in the documentation, isolated DAG files are suggested, therefore Airflow community must be using your methods as well. Generator.py can be scheduled to generate the files using cron job, and it will be good to go :) Thank you for the content you have shared and informed Airflow users. It was extremely helpful for me :)

  • @BrianMoore-b9v
    @BrianMoore-b9v ปีที่แล้ว

    This is informative but I think the piece that I always struggle with is whats the best way to keep the load on the scheduler down if I need to pull data to build the dag based on whats in a database.

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

    Informative ❤️

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

    Hi! Thanks for your video. Very helpful. Just a comment, you're recording your voice through just one channel, and music in the other, which makes it a bit quieter than normal.

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

    Hey. Can I access the airflow instance which is deployed on astronomer using kubernetes?? I mainly want meta data to access

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

    Lovely!

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

    Hi Marc, thank you very much for sharing great information! one quick question though, this could have also done by using normal replace method as well where it will replace the values it receives from yaml in dag template and generate new dag for each yaml config files. Any specific advantage of using jinja2 templates instead?

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

    Hi Marc, can you please elaborate on the risks of using config with a loop and globals? I would agree that having one file per DAG is more ideal but you also linearly increase your codebase for each config so that con needs to outweigh the risks/downsides of the loop/global approach

  • @5hubham
    @5hubham 2 ปีที่แล้ว +1

    Can we use JSON also instead of YAML?

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

    Do you have any git repo this example?

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

    Hi Mark, I am new to airflow and I was hoping you’d be able to help provide me guidance on this:
    I want to create a job that retrieves
    1.api key based on params (ie params=api id)
    2. make api call
    3. load data
    However I need to do this for many different Apikey (ie do this for 100+ different api keys, but function is the same across all, only difference for each job is params of step1) how would you approach this?
    Would you dynamically create individual dags based on params for each api key?
    Would you have a parent dag to generate subdags for each apikey?
    Or any other ideas?
    Thanks a lot in advance!

  • @97Arshan
    @97Arshan 2 ปีที่แล้ว

    Hi Marc, first of all, thanks a lot for teaching us airflow! I also got your course on Udemy but I had a question, there you ask us to use virtual box but I didn't and I used your TH-cam video to setup airflow using docker in 5 minutes. That shouldn't be a problem for the rest of the course, right?
    Edit: fixed tracing to teaching

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

      Not at all and I'm actually thinking of removing this VM

    • @97Arshan
      @97Arshan 2 ปีที่แล้ว

      @@MarcLamberti that's great, thank you very much!

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

    may you re-record this?

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

    Hmm.. why can I only hear music but not the voice from my right earbud.
    great video nonetheless thank you !!

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

      My mic :'(
      Sorry about that

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

    I never managed to install airflow to start learning…the local host 8080 never opens to me

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

    Audio is not good