8000 Bug Report: ApiValueError when retrieving schedule_interval using get_dag_details in Airflow Client · Issue #124 · apache/airflow-client-python · GitHub
[go: up one dir, main page]

Skip to content
Bug Report: ApiValueError when retrieving schedule_interval using get_dag_details in Airflow Client #124
Open
@shawnleehere

Description

@shawnleehere

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0