I am working with a lambda function which does a requests.post('url', json_data)
to my application endpoint, and this is working fine .
the only problem is that lambda function is getting called multiple times , I am using python ( boto3 ) for creating lambda handler function , and when searching for the solution I keep seeing context.succeed ( but it turns out that this option is only available for node not python), I got the below options for dir(context).
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'aws_request_id', 'client_context', 'function_name', 'function_version', 'get_remaining_time_in_millis', 'identity', 'invoked_function_arn', 'log', 'log_group_name', 'log_stream_name', 'memory_limit_in_mb']
Can someone please help to get context.succeed equivalent in python (boto3), or a way to get stop the lambda function getting executed multiple times in python . Thanks in Advance.