Dev/Airflow2 [airflow, docker] log 가 안나오는 이슈 Airflow 로그가 출력되지 않는 이슈docker-compose 로 airflow 를 실행하는데 로그가 안나오고 다음과 같은 에러만 발생 !!!! Please make sure that all your Airflow components (e.g. schedulers, webservers, workers and triggerer) have the same 'secret_key' configured in 'webserver' section and time is synchronized on all your machines (for example with ntpd) See more at https://airflow.apache.org/docs/apache-airflow/stable/configurations.. 2024. 3. 7. [Airflow/python] airflow Variable Variable 등록 airflow 에서 Variable 은 airflow 전역에서 사용할 값을 미리 저장하고 DAG에서 공통적으로 사용할 변수를 말한다. 아래처럼 airflow webserver UI 에서 설정이 가능하다. JSON으로 여러개의 값을 등록할 수도 있다. Variable 사용 airflow 모듈의 Variable 을 불러와서 다음과 같이 key 값으로 value 값을 가져오면 된다. from airflow.models.variable import Variable profile = Variable.get('profile', 'local') 두번째 인자값은(local) 해당 key 값이 없을때의 기본값이다. 2024. 3. 5. 이전 1 다음