ashb commented on code in PR #61813:
URL: https://github.com/apache/airflow/pull/61813#discussion_r2799094919
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -920,6 +920,13 @@ def _get_sentry_integration(executor: BaseExecutor) -> str:
if ti.dag_run.state in State.finished_dr_states:
ti.set_state(None, session=session)
continue
+ # This is possible to hit if a DagRun was in progress during a
2->3 upgrade
+ if not ti.dag_version_id:
+ self.log.error(
Review Comment:
Maybe warning and add "pause this dag or ensure it gets parsed to fix"?
--
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]