def _download_from_s3(self) -> None: """Download binary from S3 and measure elapsed time.""" LOGGER.debug('Downloading %s to %s', self.object_key, self.download_path) start_time = time.time() self.s3_last_modified, self.s3_metadata = analyzer_aws_lib.download_from_s3( self.bucket_name, self.object_key, self.download_path) self.download_time_ms = (time.time() - start_time) * 1000
def _download_from_s3(self): """Download binary from S3 and measure elapsed time.""" LOGGER.debug('Downloading to %s', self.download_path) start_time = time.time() s3_metadata = analyzer_aws_lib.download_from_s3( self.bucket_name, self.object_key, self.download_path) self.download_time_ms = (time.time() - start_time) * 1000 self.reported_md5 = s3_metadata.get('reported_md5', '') self.observed_path = s3_metadata.get('observed_path', '')