kaxil commented on code in PR #56660:
URL: https://github.com/apache/airflow/pull/56660#discussion_r2435764683


##########
airflow-core/src/airflow/serialization/serialized_objects.py:
##########
@@ -2318,7 +2318,7 @@ def _create_orm_dagrun(
             select(DagModel.bundle_version).where(DagModel.dag_id == 
dag.dag_id),
         )
     dag_version = DagVersion.get_latest_version(dag.dag_id, session=session)
-    if not dag_version:
+    if not dag_version and triggering_user_name != "dag_test":

Review Comment:
   Wouldn't a better thing to detect would be to use `triggered_by` field with 
`DagRunTriggeredByType.TEST` since it is enum as opposed to raw string anyway



-- 
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