kirillsights opened a new issue, #66190:
URL: https://github.com/apache/airflow/issues/66190

   ### Under which category would you file this issue?
   
   Airflow Core
   
   ### Apache Airflow version
   
   3.2.1
   
   ### What happened and how to reproduce it?
   
   Scheduler regularly crashed with:
   
   ```
   pydantic_core._pydantic_core.ValidationError: 2 validation errors for DagRun
   consumed_asset_events.0.source_aliases
     Error extracting attribute: DetachedInstanceError: Parent instance 
<AssetEvent at 0x7fb19e3478b0> is not bound to a Session; lazy load operation 
of attribute 'source_aliases' cannot proceed (Background on this error at: 
https://sqlalche.me/e/20/bhk3) [type=get_attribute_error, 
input_value=<unprintable AssetEvent object>, input_type=AssetEvent]
       For further information visit 
https://errors.pydantic.dev/2.12/v/get_attribute_error
   consumed_asset_events.1.source_aliases
     Error extracting attribute: DetachedInstanceError: Parent instance 
<AssetEvent at 0x7fb19d7a56d0> is not bound to a Session; lazy load operation 
of attribute 'source_aliases' cannot proceed (Background on this error at: 
https://sqlalche.me/e/20/bhk3) [type=get_attribute_error, 
input_value=<unprintable AssetEvent object>, input_type=AssetEvent]
       For further information visit 
https://errors.pydantic.dev/2.12/v/get_attribute_error
   ```
   This happened under high load, so its hard to reproduce it in a simple case.
   
   Full log: 
[airflow-prod-scheduler-b4cfc7457-cd8qb_scheduler_previous.log](https://github.com/user-attachments/files/27263760/airflow-prod-scheduler-b4cfc7457-cd8qb_scheduler_previous.log)
   
   ### What you think should happen instead?
   
   Scheduler should not crash.
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Apache Airflow Provider(s)
   
   _No response_
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Official Helm Chart version
   
   1.18.0
   
   ### Kubernetes Version
   
   _No response_
   
   ### Helm Chart configuration
   
   _No response_
   
   ### Docker Image customizations
   
   _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]

Reply via email to