ashb commented on a change in pull request #16634:
URL: https://github.com/apache/airflow/pull/16634#discussion_r708302970



##########
File path: tests/www/views/test_views_tasks.py
##########
@@ -594,6 +622,38 @@ def _get_appbuilder_pk_string(model_view_cls, instance) -> 
str:
     return model_view_cls._serialize_pk_if_composite(model_view_cls, pk_value)
 
 
[email protected](scope="function")
+def task_instance_to_delete(session):
+    dag = DagBag().get_dag("example_bash_operator")
+    task0 = dag.get_task("runme_0")
+    task0.task_id = "test_task_instance_to_delete"
+    execution_date = timezone.datetime(2021, 6, 26)
+    ti = TaskInstance(task0, execution_date, state="success")

Review comment:
       @Jorricks This is the cause of your failure now -- a recently merged 
change means that you can no longer create a TI in the database without a 
matching DagRun row.




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