aoelvp94 commented on code in PR #73015:
URL: https://github.com/apache/airflow/pull/73015#discussion_r4434644033


##########
providers/amazon/src/airflow/providers/amazon/aws/bundles/s3.py:
##########
@@ -79,7 +123,12 @@ def _initialize(self):
             if not self.s3_hook.check_for_bucket(bucket_name=self.bucket_name):
                 raise AirflowException(f"S3 bucket '{self.bucket_name}' does 
not exist.")
 
-            if self.prefix:
+            if self.archive_key:
+                if not self.s3_hook.check_for_key(key=self.archive_key, 
bucket_name=self.bucket_name):
+                    raise AirflowNotFoundException(
+                        f"S3 archive 
's3://{self.bucket_name}/{self.archive_key}' does not exist."
+                    )

Review Comment:
   Removed that check. A missing archive fails on the HEAD inside refresh, as 
the client's 404.
   
   
https://github.com/apache/airflow/pull/73015/commits/d046c82a87a055628513a3f34bac846b300de78e



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