tulanowski commented on issue #29: URL: https://github.com/apache/airflow-client-python/issues/29#issuecomment-948644175
I confirm the issue. I tested following versions combinations: ``` apache-airflow==2.1.4 apache-airflow-client==2.1.0 ``` and ``` apache-airflow==2.2.0 apache-airflow-client==2.1.0 ``` In both cases I get the same error for `get_dag` and `get_dags` method: ``` airflow_client.client.exceptions.ApiAttributeError: DAG has no attribute 'is_active' at ['received_data']['is_active'] ``` Raw API response: ``` curl -X 'GET' 'http://localhost:8080/api/v1/dags?limit=100&only_active=true' -H 'accept: application/json' { "dags": [ { "dag_id": "test_dag", "description": null, "file_token": "Ii9vcHQvYWlyZmxvdy9kYWdzL3Rlc3RfZGFnLnB5Ig.OapbMJoMLHYlHJ9XnD_xClqxLKw", "fileloc": "/opt/airflow/dags/test_dag.py", "is_active": true, "is_paused": true, "is_subdag": false, "owners": [ "airflow" ], "root_dag_id": null, "schedule_interval": null, "tags": [] } ], "total_entries": 1 } ``` I'm using very simple DAG: ``` from datetime import datetime from airflow import DAG from airflow.operators.python import PythonOperator with DAG( 'test_dag', schedule_interval=None, start_date=datetime(2021, 1, 1), ) as dag: PythonOperator( task_id=f'test_task', python_callable=lambda: print('hi'), dag=dag ) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
