I am getting an application=ex_aws module=ExAws.Request function=request_and_retry/7 [warning] ExAws: HTTP ERROR: :emfile for URL: "https://lambda.us-east-1.amazonaws.com/2015-03-31/functions/lambda/invocations" ATTEMPT: 8
.
Inside of my lambda i currently stripped away most of the logic and have left only the handler as a simple “Hello world”
const handler = (event) => {
console.log("hello world");
};
module.exports = {
handler,
};
and once deployed i am calling it as such
Task.Supervisor.async_stream_nolink(
Jester.TaskSupervisor,
1..1_000,
fn line ->
"lambda"
|> ExAws.Lambda.invoke(
%{
method: :get,
url: "https://google.com",
headers: %{}
},
%{},
invocation_type: :request_response
)
|> ExAws.request()
end,
timeout: 40_000,
max_concurrency: 250
)
|> Stream.run()
Am i hitting a concurrency limit somewhere where it is trying to open more files than it is capable of?