We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b18251 + cdc505b commit 0292b91Copy full SHA for 0292b91
index/index.py
@@ -53,7 +53,7 @@ def lambda_handler(event, context):
53
if instance_has_running_tasks(msg['EC2InstanceId']):
54
print('Tasks are still running on instance %s; posting msg to SNS topic %s' %
55
(msg['EC2InstanceId'], event['Records'][0]['Sns']['TopicArn']))
56
- time.sleep(SLEEP_TIME)
+ time.sleep(int(SLEEP_TIME))
57
sns_resp = SNS.publish(TopicArn=event['Records'][0]['Sns']['TopicArn'],
58
Message=json.dumps(msg),
59
Subject='Publishing SNS msg to invoke Lambda again.')
0 commit comments