KevinYang21 commented on a change in pull request #5589: [WIP][AIRFLOW-4956]
Fix LocalTaskJob heartbeat log spamming
URL: https://github.com/apache/airflow/pull/5589#discussion_r303386644
##########
File path: airflow/jobs/local_task_job.py
##########
@@ -103,16 +100,8 @@ def signal_handler(signum, frame):
# Periodically heartbeat so that the scheduler doesn't think
this
# is a zombie
- try:
- self.heartbeat()
- last_heartbeat_time = time.time()
- except OperationalError:
- Stats.incr('local_task_job_heartbeat_failure', 1, 1)
Review comment:
This metric is basically not useful at all since all exceptions are
swallowed by `heartbeat()`. Yes let me make a more generic metrics inside
`heartbeat()` as an replacement.
----------------------------------------------------------------
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