ephraimbuddy commented on a change in pull request #17265:
URL: https://github.com/apache/airflow/pull/17265#discussion_r682638806



##########
File path: tests/jobs/test_scheduler_job.py
##########
@@ -119,10 +119,18 @@ def clean_db():
         # DO NOT try to run clear_db_serialized_dags() here - this will break 
the tests
         # The tests expect DAGs to be fully loaded here via setUpClass method 
below
 
+    def setup_method(self):
+        self.clean_db()
+
+    def teardown_method(self):
+        if self.scheduler_job and self.scheduler_job.processor_agent:
+            self.scheduler_job.processor_agent.end()
+            self.scheduler_job = None
+        self.clean_db()

Review comment:
       I had error while trying to delete DagModel in a previous push but I can 
see now that here is not the problem so, I will revert it




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