Open
Description
Description
Encountered an ApiValueError when attempting to retrieve the schedule_interval field using get_dag_details in the Airflow client. The error suggests inconsistent values for the schedule_interval property.
Code Snippet
detail = api_instance.get_dag_details(dag_id=dag_id)
LOGGER.info(f"details: {detail}")
LOGGER.info(f"schedule: {detail['schedule_interval']}")
Error Message
File "/home/******/.virtualenvs/recalculation/lib/python3.10/site-packages/airflow_client/client/model_utils.py", line 668, in __getitem__
value = self.get(name, self.__unset_attribute_value__)
File "/home/******/.virtualenvs/recalculation/lib/python3.10/site-packages/airflow_client/client/model_utils.py", line 659, in get
raise ApiValueError(
airflow_client.client.exceptions.ApiValueError: Values stored for property schedule_interval in DAGDetail differ when looking at self and self's composed instances. All values must be the same at ['['received_data']']['schedule_interval']
Debug
Environment
Airflow version: [v2.10.5]
airflow-client-python version: [2.10.0]
Python version: [3.10.12]
Operating System: [Ubuntu]
Metadata
Metadata
Assignees
Labels
No labels