When invoking an Amazon Web Service Lambda function from the ruby SDK is there any way of determining if the function encountered a context.fail?
ie. if I invoke an AWS Lambda function like this in the ruby sdk:
resp = LAMBDA.invoke({
function_name: "cropSomeStuff",
invocation_type: "RequestResponse",
log_type: "Tail", # accepts None, Tail
payload: payload.to_json
})
and the function encounters a context.fail(err)
resp.successful? still return true. I can look at the logs with Base64.decode64(resp.log_result), however, I don't see an easy way to programmatically tell the function invocation failed at the ruby level.