airflow-client-python icon indicating copy to clipboard operation
airflow-client-python copied to clipboard

Bug Report: ApiValueError when retrieving schedule_interval using get_dag_details in Airflow Client

Open shawnleehere opened this issue 10 months ago • 0 comments

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

Image

Environment

Airflow version: [v2.10.5] airflow-client-python version: [2.10.0] Python version: [3.10.12] Operating System: [Ubuntu]

shawnleehere avatar Mar 06 '25 09:03 shawnleehere