ohaibbq commented on PR #32731: URL: https://github.com/apache/airflow/pull/32731#issuecomment-1645968482
Hi @uranusjr, thanks for the review! I wanted to add some context to this error while I have some eyes on the issue. We're manually configuring the engine in test via `AIRFLOW__DATABASE_SQL_ALCHEMY_CONN` and `settings.initialize()`. This step seems superfluous as `dag.test` is supposed to accept a `session` (#29803), however, I was running into an error where a `TaskInstance` was not found since it `TaskInstance._run_raw_task` did not pass the session to `get_template_context`. Is this a known issue? https://github.com/apache/airflow/blob/main/airflow/models/taskinstance.py#L1499 -- 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]
