airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [airflow] potiuk commented on a change in pull request #6749: [AIRFLOW-6193] Do not use asserts in Airflow main code
Date Mon, 09 Dec 2019 14:25:11 GMT
potiuk commented on a change in pull request #6749: [AIRFLOW-6193] Do not use asserts in Airflow
main code
URL: https://github.com/apache/airflow/pull/6749#discussion_r355476875
 
 

 ##########
 File path: airflow/executors/kubernetes_executor.py
 ##########
 @@ -863,9 +876,12 @@ def _flush_result_queue(self) -> None:
 
     def end(self) -> None:
         """Called when the executor shuts down"""
-        assert self.task_queue, NOT_STARTED_MESSAGE
-        assert self.result_queue, NOT_STARTED_MESSAGE
-        assert self.kube_scheduler, NOT_STARTED_MESSAGE
+        if not self.task_queue:
 
 Review comment:
   Same here @nuclearpinguin ?

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

Mime
View raw message