forked from p15670423/monkey
Common: Add sleep before AWS command invocation
This commit is contained in:
parent
c129f809b0
commit
97059dcd75
|
@ -1,4 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
|
import time
|
||||||
|
|
||||||
from common.cloud.aws.aws_service import AwsService
|
from common.cloud.aws.aws_service import AwsService
|
||||||
from common.cmd.aws.aws_cmd_result import AwsCmdResult
|
from common.cmd.aws.aws_cmd_result import AwsCmdResult
|
||||||
|
@ -20,6 +21,7 @@ class AwsCmdRunner(CmdRunner):
|
||||||
self.ssm = AwsService.get_client("ssm", region)
|
self.ssm = AwsService.get_client("ssm", region)
|
||||||
|
|
||||||
def query_command(self, command_id):
|
def query_command(self, command_id):
|
||||||
|
time.sleep(2)
|
||||||
return self.ssm.get_command_invocation(CommandId=command_id, InstanceId=self.instance_id)
|
return self.ssm.get_command_invocation(CommandId=command_id, InstanceId=self.instance_id)
|
||||||
|
|
||||||
def get_command_result(self, command_info):
|
def get_command_result(self, command_info):
|
||||||
|
|
Loading…
Reference in New Issue