XD-DENG commented on code in PR #27611:
URL: https://github.com/apache/airflow/pull/27611#discussion_r1019723290


##########
airflow/executors/kubernetes_executor.py:
##########
@@ -646,6 +649,14 @@ def sync(self) -> None:
                             json.loads(e.body)["message"],
                         )
                         self.task_queue.put(task)
+                except PodMutationHookException as e:
+                    key, _, _, _ = task
+                    self.log.warning(
+                        'Pod Mutation Hook failed for the task %s. 
Re-queueing. Details: %s',

Review Comment:
   The reason for what the `pod_mutation_hook` failed may be different and can 
vary case by case. That's why I chose to log & re-queue it, just similar to how 
the non-`400`/`422` `ApiException` are handled. Not sure if it's sensible to 
you? @jedcunningham 



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

Reply via email to