개요
airflow 옮기는 작업 중에 error 발생
RemovedInAirflow3Warning: Fetching SMTP credentials from configuration variables will be deprecated in a future release. Please set credentials using a connection instead.
확인
airflow 진행 사항을 이메일로 받는데, 그 이메일 인증 관련해서 생긴 문제
## docker-compose.yaml
# For SMTP
AIRFLOW__SMTP__SMTP_HOST: smtp.gmail.com
AIRFLOW__SMTP__SMTP_PORT: 587
AIRFLOW__SMTP__SMTP_RETRY_LIMIT: 5
AIRFLOW__SMTP__SMTP_STARTTLS: 'true'
AIRFLOW__SMTP__SMTP_SSL: 'false'
AIRFLOW__SMTP__SMTP_TIMEOUT: 30
AIRFLOW__SMTP__SMTP_USER: 'user01@email.com'
AIRFLOW__SMTP__SMTP_MAIL_FROM: 'user02@email.com'
AIRFLOW__SMTP__SMTP_PASSWORD: ****************
docker-compose.yaml 파일에서 SMTP 관련 설정을 찾았다.
사용하던 AIRFLOW__SMTP__SMTP_PASSWORD 를 재설정 해야한다.
진행
smtp password 받으려면
1️⃣ Google 계정 관리에 들어감
2️⃣ 보안에 들어감
3️⃣ 2단계 인증 추가하기
4️⃣ 앱 비밀번호 접근
5️⃣ 앱 만들기 진행하면
✅ 아래와 같이 16자리 알파켓으로 구성된 비밀번호 생성됨
그럼 생성된 앱 비밀번호를 docker-compse.yaml 에서 수정해주면
✅ 잘 진행됨 확인
'👩🏻💻 > airflow' 카테고리의 다른 글
크롤링 관리 Airflow vs Celery (0) | 2025.02.04 |
---|---|
[Airflow] local에서 간단하게 시작하기 (1) | 2024.07.30 |
[Airflow] airflow ui에서 arguments 전달하기 (0) | 2024.07.11 |
[Airflow] The scheduler does not appear to be running. Last heartbeat was received 7 hours ago.The DAGs list may not update, and new tasks will not be scheduled. (2) | 2024.03.08 |