Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda Invocation times out after 60 s #22

Open
denis-singh opened this issue Aug 14, 2017 · 1 comment
Open

Lambda Invocation times out after 60 s #22

denis-singh opened this issue Aug 14, 2017 · 1 comment

Comments

@denis-singh
Copy link

denis-singh commented Aug 14, 2017

Hi,
We have some lambda's that run for more than 60s. Is it possible to remove the "60000" that has been hardcoded into the lambda invoke function and get it to use the "aws_conn_keepalive" variable when a new lambda service is created?

-- actionName, arguments, path, http_method, useSSL, timeout, contentType
    local ok, code, headers, status, body = self:performAction("Invoke", payload, path, "POST", true, 60000, "application/x-amz-json-1.1", extra_headers)

    if (code == ngx.HTTP_OK and body ~= nil) then
        return {}, code, headers, status, body
    end
    return nil, code, headers, status, body
end
@ddragosd
Copy link
Member

aws_conn_keepalive has another purpose, but we could expose a timeout parameter to the invoke method. Feel free to submit a PR if it's urgent for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants