본문 바로가기
Cloud

[GCP Composer] Broken DAG ModuleNotFoundError 발생.. | LIM

by forestlim 2022. 7. 4.
728x90
반응형

이 글이 누군가에게 도움이 되길 바라며...

 

갑자기 composer에서 잘만 사용하던 모듈이 ModeulNotFoundError 가 떠서 두시간동안 삽질했다..

 

간단하게 테스트하려고 cloud storage 업데이트 하는 gcloud 명령어인 gcloud composer environments storage dags import 를 너무 많이 날려서 그런가 composer와 gcs간 sync 가 안맞았었나보다..

 

문제 해결은 생성한 개인 모듈 이름을 바꾸는 거였다..기존 만들어놓은 모듈 폴더를 cloud storage에서 삭제하고 새로운 이름으로 변경해서 폴더와 파일 업데이트하니 다시 잘됐다..

 

밑에 사이트 참고했다

 

https://groups.google.com/g/cloud-composer-discuss/c/NVnN1wFVShw

 

"Broken Dag" errors in UI

I had the same problem with the Airflow. This usually happens when you update the code with new variable references like imported a new variable from Constants file. For some reason, Airflow don't kill some of its child processes that it creates to run T

groups.google.com

 

728x90
반응형

댓글