Monitor your dag with slack alerts | Apache Airflow tutorials for beginners

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 11

  • @eunheechoi3745
    @eunheechoi3745 2 месяца назад

    I was able to create the app and install the webhook on slack. Testing the API via POSTMAN was successful. However when I run the airflow job which is failing as intended there is no slack notification sent to the channel. I see the following error - "schannel: next InitializeSecurityContext failed" any idea? and how to solve

  • @maxcoteclearning
    @maxcoteclearning  Год назад

    code: github.com/maxcotec/Apache-Airflow/tree/main/slack-alert-dag

  • @AnkitKumarMishra-ig3jh
    @AnkitKumarMishra-ig3jh Год назад

    It will notify me of all my dags if they failed or succeed ?

    • @maxcoteclearning
      @maxcoteclearning  Год назад +1

      there are seperate callback methods for each. The one I showed is going to alert on dag failure `on_failure_callback`. You can use `on_success_callback` for alerts when dag successeds

  • @kajolagarwala10
    @kajolagarwala10 2 года назад +1

    Hi, how can I send it to multiple channels?

    • @maxcoteclearning
      @maxcoteclearning  2 года назад

      You'll need to create a slack webhook for each channel. Then simply sent alert on each channel (e.g. Using for loop)

    • @maxcoteclearning
      @maxcoteclearning  2 года назад

      Sorry for the delay. I will upload the code soon today.

    • @AteetAgrawal-gn3ki
      @AteetAgrawal-gn3ki Год назад

      Please add the code for multiple channels

  • @sedatopalhan9382
    @sedatopalhan9382 Год назад

    Could you sent code repository? I want to consider codes in local pc, Thank you very much