rawwar opened a new issue, #47483:
URL: https://github.com/apache/airflow/issues/47483
### Apache Airflow version
main (development)
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
example dag_id `asset_alias_example_alias_producer` defined in
`example_asset_alias.py` is failing with below error:
```
Traceback (most recent call last):
File "/opt/airflow/airflow/utils/session.py", line 40, in create_session
session = Session()
File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/supervisor.py",
line 207, in __init__
raise RuntimeError("Direct database access via the ORM is not allowed in
Airflow 3.0")
RuntimeError: Direct database access via the ORM is not allowed in Airflow
3.0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/airflow/airflow/serialization/serialized_objects.py", line
1768, in to_dict
json_dict = {"__version": cls.SERIALIZER_VERSION, "dag":
cls.serialize_dag(var)}
File "/opt/airflow/airflow/serialization/serialized_objects.py", line
1682, in serialize_dag
raise SerializationError(f"Failed to serialize DAG {dag.dag_id!r}: {e}")
airflow.exceptions.SerializationError: Failed to serialize DAG
'asset_alias_example_alias_producer': Direct database access via the ORM is not
allowed in Airflow 3.0
```
### What you think should happen instead?
_No response_
### How to reproduce
`breeze start-airflow --load-example-dags`
### Operating System
Mac
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]