diff --git a/sebs/aws/aws.py b/sebs/aws/aws.py index 055c4779..5519bd85 100644 --- a/sebs/aws/aws.py +++ b/sebs/aws/aws.py @@ -274,6 +274,11 @@ def update_function(self, function: Function, code_package: Benchmark): self.client.update_function_code( FunctionName=name, S3Bucket=bucket, S3Key=code_package_name ) + self.logging.info( + f"Updated code of {name} function. " + "Sleep 5 seconds before updating configuration to avoid cloud errors." + ) + time.sleep(5) # and update config self.client.update_function_configuration( FunctionName=name, Timeout=function.timeout, MemorySize=function.memory