rostskadat opened a new pull request, #47156:
URL: https://github.com/apache/airflow/pull/47156

   <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
   
      http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
    -->
   
   <!--
   
   Feel free to ping committers for the review!
   
   In case of an existing issue, reference it using one of the following:
   
   closes: #ISSUE
   related: #ISSUE
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   
   
   
   <!-- Please keep an empty line above the dashes. -->
   ---
   The latest boto3 Amazon RDS documentation states that only the following 
waiters are available for RDS clusters and instances:
   
   * DBClusterAvailable
   * DBClusterDeleted
   * DBInstanceAvailable
   * DBInstanceDeleted
   
   The RdsHook, tries to create a waiter for the `target_state` `stopped`. This 
gives the following error:
   
   ```
   ...
     File 
"/usr/local/airflow/.local/lib/python3.11/site-packages/airflow/providers/amazon/aws/hooks/rds.py",
 line 263, in wait_for_db_instance_state
       waiter = self.conn.get_waiter(f"db_instance_{target_state}")  # type: 
ignore
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/usr/local/airflow/.local/lib/python3.11/site-packages/botocore/client.py", 
line 1267, in get_waiter
       raise ValueError(f"Waiter does not exist: {waiter_name}")
   ValueError: Waiter does not exist: db_instance_stopped
   ``` 
   
   This PR aims to correct this error by making sure that no waiter is created 
for that `target_state`
   
   
   


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