ashb commented on a change in pull request #5880: [AIRFLOW-5282] Add default 
timeout on kubeclient & catch HTTPError
URL: https://github.com/apache/airflow/pull/5880#discussion_r316577541
 
 

 ##########
 File path: airflow/contrib/executors/kubernetes_executor.py
 ##########
 @@ -797,6 +799,10 @@ def sync(self):
                     self.log.warning('ApiException when attempting to run 
task, re-queueing. '
                                      'Message: %s' % 
json.loads(e.body)['message'])
                     self.task_queue.put(task)
+                except HTTPError as e:
+                    self.log.warning('HTTPError when attempting to run task, 
re-queueing. '
+                                     'Exception: %s' + str(e))
 
 Review comment:
   ```suggestion
                                        'Exception: %s', str(e))
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to