stelsemeyer-m60 opened a new pull request, #32631:
URL: https://github.com/apache/airflow/pull/32631

   Parametrize the interval in which the Kubernetes pod status is polled when 
launching a new pod using the already existing `poll_interval` parameter.
   
   When using serverless Kubernetes services like Google GKE Autopilot the pod 
startup time is sometimes expected to be longer due to a cold start. Therefore 
the logs might be spammed due to the default checks every second (see below), 
and a lower check frequency might be desired
   
   ```
   [2023-05-02, 05:33:22 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:23 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:24 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:25 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:26 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:27 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:28 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:29 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:30 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:31 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:32 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:33 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:34 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:35 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:36 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   [2023-05-02, 05:33:37 UTC] {pod_manager.py:187} WARNING - Pod not yet 
started: some-pod-he2j8139
   ...
   ```
   
   This addresses comments in https://github.com/apache/airflow/pull/31008 
(having duplicated logic, not fully functional new implementation). 
   cc @jedcunningham @potiuk 


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