milton0825 commented on a change in pull request #5321: [AIRFLOW-4565] 
instrument celery executor
URL: https://github.com/apache/airflow/pull/5321#discussion_r287217972
 
 

 ##########
 File path: airflow/executors/celery_executor.py
 ##########
 @@ -182,10 +183,17 @@ def heartbeat(self):
         else:
             open_slots = self.parallelism - len(self.running)
 
-        self.log.debug("%s running task instances", len(self.running))
-        self.log.debug("%s in queue", len(self.queued_tasks))
+        num_running_tasks = len(self.running)
 
 Review comment:
   Looks like we have similar code in:
   
https://github.com/apache/airflow/blob/a9eff7a7e4367414040c6fb1cf17f30bcaf0dd5c/airflow/executors/base_executor.py#L116-L130
   
   Can we consolidate the two?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to