aws-samples / aws-lambda-ddns-function

Dynamically create Route 53 resource records using CloudWatch Events and Lambda
Apache License 2.0
236 stars 116 forks source link

60 second wait #37

Closed jimr6007 closed 3 years ago

jimr6007 commented 3 years ago

What is the purpose of this wait? How dangerous might it be to reduce that wait to says 30 seconds or even less?

if state == 'running': time.sleep(60)

Thanks !

jimr6007 commented 3 years ago

is it needed when we also have a little later in the code?

time.sleep(random.random())

jimr6007 commented 3 years ago

whoops, this question was already asked and answered.