You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "shawnleehere (via GitHub)" <gi...@apache.org> on 2025/03/06 09:47:30 UTC
[I] Bug Report: ApiValueError when retrieving schedule_interval using get_dag_details in Airflow Client [airflow-client-python]
shawnleehere opened a new issue, #124:
URL: https://github.com/apache/airflow-client-python/issues/124
### 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, fields=['schedule_interval'])
LOGGER.info(f"DAG details: {detail}")
LOGGER.info(f"Type of schedule: {detail['schedule_interval']}")
```
### Error Message
```
File "/home/lixiaopeng/.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/lixiaopeng/.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]
--
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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Bug Report: ApiValueError when retrieving schedule_interval using get_dag_details in Airflow Client [airflow-client-python]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #124:
URL: https://github.com/apache/airflow-client-python/issues/124#issuecomment-3774923610
This client is entirely generated from Airflow source code, using openapi-client - If you need to add any issues about it still - do it in the main Airflow repo - ideally pointing to some code examples here.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Bug Report: ApiValueError when retrieving schedule_interval using get_dag_details in Airflow Client [airflow-client-python]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #124: Bug Report: ApiValueError when retrieving schedule_interval using get_dag_details in Airflow Client
URL: https://github.com/apache/airflow-client-python/issues/124
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org