You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2018/09/17 13:02:33 UTC

[GitHub] Fokko commented on a change in pull request #3907: [AIRFLOW-1195] Add feature to clear tasks in Parent Dag

Fokko commented on a change in pull request #3907: [AIRFLOW-1195] Add feature to clear tasks in Parent Dag
URL: https://github.com/apache/incubator-airflow/pull/3907#discussion_r218058905
 
 

 ##########
 File path: tests/jobs.py
 ##########
 @@ -901,6 +901,59 @@ def test_backfill_execute_subdag(self):
         subdag.clear()
         dag.clear()
 
+    def test_subdag_clear_parentdag_downstream_clear(self):
+        dag = self.dagbag.get_dag('example_subdag_operator')
+        subdag_op_task = dag.get_task('section-1')
+
+        subdag = subdag_op_task.subdag
+        subdag.schedule_interval = '@daily'
+
+        executor = TestExecutor(do_update=True)
+        job = BackfillJob(dag=subdag,
+                          start_date=DEFAULT_DATE,
+                          end_date=DEFAULT_DATE,
+                          executor=executor,
+                          donot_pickle=True)
+
+        with timeout(seconds=30):
+            job.run()
 
 Review comment:
   Can't we poll this? In this case it will always take 30 seconds, right?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services