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 2019/10/04 09:00:56 UTC

[GitHub] [airflow] ashb commented on a change in pull request #6182: [AIRFLOW-3877] -Changing full file path in scheduler

ashb commented on a change in pull request #6182: [AIRFLOW-3877] -Changing full file path in scheduler
URL: https://github.com/apache/airflow/pull/6182#discussion_r331404053
 
 

 ##########
 File path: tests/jobs/test_scheduler_job.py
 ##########
 @@ -2736,3 +2736,28 @@ def test_find_dags_to_run_skip_paused_dags(self):
         dags = scheduler._find_dags_to_process(dagbag.dags.values(), paused_dag_ids=[dag.dag_id])
 
         self.assertNotIn(dag, dags)
+
+    def test_change_filepath_in_enqueue_task_instances_with_queued_state(self):
+        dag_id = 'SchedulerJobTest.test_change_filepath_in_enqueue_task_instances_with_queued_state'
+        task_id_1 = 'dummyTask1'
+        dag = DAG(dag_id=dag_id, start_date=DEFAULT_DATE, full_filepath=os.path.join(DAGS_FOLDER, TEMP_DAG_FILENAME))
+        task1 = DummyOperator(dag=dag, task_id=task_id_1)
+        dagbag = self._make_simple_dag_bag([dag])
+
+        scheduler = SchedulerJob()
 
 Review comment:
   Please use the null executor like the other tests do.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services