uranusjr commented on a change in pull request #17265:
URL: https://github.com/apache/airflow/pull/17265#discussion_r682623150
##########
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:
Any particualr reason for this change? This does not seem to change
things functionality-wise afaict
--
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]