Focus On: The Apache Airflow PythonOperator, all you need in 20 mins!

Поділитися
Вставка
  • Опубліковано 8 жов 2024
  • Focus On: The Apache Airflow PythonOperator, all you need in 20 mins!
    In this video you are going to discover everything about the PythonOperator in Airflow 2.0
    At the end of the video you will be able to:
    ⏺ Execute a Python function (Amazing isn't it?)
    ⏺ Pass positional arguments to your Python function
    ⏺ Pass keyword arguments to your Python function
    ⏺ Evaluate your arguments at runtime and pass variables
    ⏺ Reduce the number of calls to your database
    ⏺ Make your DAG cleaner
    ⏺ Get the current execution date in Airflow 2.0
    ⏺ Leverage the TaskFlow API to transform your PythonOperator in a mind-blowing way!
    Materials:
    www.notion.so/...
    The NEW WAY OF CREATING DAGS:
    • TaskFlow API in Airflo...
    Enjoy ❤️

КОМЕНТАРІ • 30

  • @chris0628
    @chris0628 Рік тому +1

    To the point, no fluff 👍🏽

  • @goodmanshawnhuang
    @goodmanshawnhuang 2 місяці тому

    Great job, thanks for sharing it.

  • @JosePla
    @JosePla 2 роки тому

    This is exactly what I was looking for

  • @FranVarVar
    @FranVarVar Рік тому +1

    Amazing. Thanks Marc!

  • @Leonardo-jv1ls
    @Leonardo-jv1ls 2 роки тому +1

    Thank you. You've helped me a lot.

  • @amitjain000
    @amitjain000 3 роки тому +1

    Awesome.. thanks for such a beautiful knowledge share.

  • @steliosioannides7128
    @steliosioannides7128 2 роки тому

    Thanks Marc for this very useful video! High appreciated ! Keep it up !!

  • @andrikramer686
    @andrikramer686 3 роки тому

    Awesome. Thanks a lot, Marc.

  • @averychen4633
    @averychen4633 8 місяців тому

    you are the best

  • @AbhishekAmeria
    @AbhishekAmeria 3 роки тому

    That's was very useful. Thanks :)

  • @vladimirobellini6128
    @vladimirobellini6128 3 роки тому

    this is great. thanks!

  • @SpiritOfIndiaaa
    @SpiritOfIndiaaa 3 роки тому

    Excellent thanks a lot...I have to check oracle table if a record exists for current date ,if exists then only call downdown stream task ,how to achieve this ?

  • @sridhar43299
    @sridhar43299 2 роки тому +1

    How to send object from gcs to email bu airflow. If possible send me code

  • @shivangitomar5557
    @shivangitomar5557 3 роки тому

    Very good vidoe!!!

  • @brendoaraujo9110
    @brendoaraujo9110 2 роки тому

    instead of calling the script function, is there an operator that I can call the script completely to be executed?

  • @GeandersonLenz
    @GeandersonLenz 3 роки тому +2

    How to turn ON this module includes?

    • @leomax87
      @leomax87 2 роки тому

      did you resolve it?

  • @bullandrooster
    @bullandrooster 3 роки тому

    Can I run 2 dags with different python version and different pandas version? For now I see airflow offers only one python version at the time, and only predefined required dependencies.
    And all my dags must match that specs.

  • @manjunathmani3678
    @manjunathmani3678 3 роки тому

    nice man

  • @eunheechoi3745
    @eunheechoi3745 Рік тому

    whenever I first run the airflow test command, it throws an error saying 'sqlalchemy.exc.NoReferenceTableError: Foreign key associated with column 'dag_run_note.user_id' could not find table 'ab_user' with which to generate a foreign key to target column 'id'
    do you what it is about? and how to fix it?
    Second run it doesn't occur....

    • @Astronomer
      @Astronomer  11 місяців тому

      Hmmmmm interesting, if it works on the second run maybe it needs to generate the table first?

  • @valetta6789
    @valetta6789 2 роки тому

    I am trying to pull the value from another task in a different folder, however, I see only the current task instance. Is this new behaviour, or am I unable to pass between different directories?

    • @Astronomer
      @Astronomer  Рік тому

      So your DAG's are in different folders?

    • @valetta6789
      @valetta6789 Рік тому

      @@Astronomer I have no idea what I was talking about😄

  • @archanam4224
    @archanam4224 2 роки тому

    import airflow cannot be resolved

  • @BalvanshHeerekar
    @BalvanshHeerekar 3 роки тому +1

    Hey, while using includes I get the error - ModuleNotFoundError: No module named 'includes'

    • @leomax87
      @leomax87 2 роки тому

      I'm facing the same error. How Can I resolve it?

    • @eldrigeampong8573
      @eldrigeampong8573 Рік тому

      @@leomax87 you can import the sys module in python after which you will navigate a number of levels either up or down into the directory your file is located.
      import sys
      sys.path.append(".") # that's move a level up into the dags folder
      from includes.my_dags.functions import process