From 97059dcd75f80c14bb1a2bef1c6a2769335ae933 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 8 Feb 2022 17:07:19 +0530 Subject: [PATCH] Common: Add sleep before AWS command invocation --- monkey/common/cmd/aws/aws_cmd_runner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkey/common/cmd/aws/aws_cmd_runner.py b/monkey/common/cmd/aws/aws_cmd_runner.py index f4b8cd7bc..c1c65ecb9 100644 --- a/monkey/common/cmd/aws/aws_cmd_runner.py +++ b/monkey/common/cmd/aws/aws_cmd_runner.py @@ -1,4 +1,5 @@ import logging +import time from common.cloud.aws.aws_service import AwsService from common.cmd.aws.aws_cmd_result import AwsCmdResult @@ -20,6 +21,7 @@ class AwsCmdRunner(CmdRunner): self.ssm = AwsService.get_client("ssm", region) def query_command(self, command_id): + time.sleep(2) return self.ssm.get_command_invocation(CommandId=command_id, InstanceId=self.instance_id) def get_command_result(self, command_info):