dstandish commented on code in PR #42913: URL: https://github.com/apache/airflow/pull/42913#discussion_r1819791181
########## airflow/api/common/trigger_dag.py: ########## @@ -92,14 +93,14 @@ def _trigger_dag( run_conf = None if conf: run_conf = conf if isinstance(conf, dict) else json.loads(conf) - + dag_version = DagVersion.get_latest_version(dag.dag_id) dag_run = dag.create_dagrun( run_id=run_id, execution_date=execution_date, state=DagRunState.QUEUED, conf=run_conf, external_trigger=True, - dag_hash=dag_bag.dags_hash.get(dag_id), + dag_version_id=dag_version.id if dag_version else None, Review Comment: why would there not be a verision? -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org