Subham-KRLX opened a new pull request, #59973: URL: https://github.com/apache/airflow/pull/59973
This PR fixes the incorrectly defined relationship between the Log and TaskInstance models. The Log.task_instance relationship in airflow/models/log.py has been updated to use a strict join on the following fields: dag_id task_id run_id map_index This ensures that log entries are correctly associated with their corresponding task instances. A new unit test has been added at airflow-core/tests/unit/models/test_log.py to verify that the relationship accurately maps log entries to task instances. The test has been run locally and passes successfully. Tests Added airflow-core/tests/unit/models/test_log.py to validate the Log.task_instance join behavior. Verified the fix locally; all relevant tests pass. Related Issues None. Files Changed airflow/models/log.py airflow-core/tests/unit/models/test_log.py Notes Fixes an incorrectly defined relationship in Log model. Verified with a new unit test. -- 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]
