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

Increase lambda deployment timeout? #344

Closed
jonapich opened this issue May 20, 2017 · 9 comments
Closed

Increase lambda deployment timeout? #344

jonapich opened this issue May 20, 2017 · 9 comments

Comments

@jonapich
Copy link

I had to raise botocore/endpoint.py/DEFAULT_TIMEOUT manually in order to succeed in pushing my lambda function.

@jamesls
Copy link
Member

jamesls commented May 23, 2017

Interesting. Out of curiosity what value did you have to change it to?

@jonapich
Copy link
Author

jonapich commented May 23, 2017 via email

@rerngvit
Copy link

I have precisely the same problem. I got "Connection aborted. Timed out sending your app to Lambda.", repeatedly, when trying to do "chalice deploy". It would be great, if a command line option to specify timeout is available.

@zjost
Copy link

zjost commented Oct 30, 2017

Same problem here. This started happening when I added numpy/pandas to my requirements.txt, so presumably it has something to do with bundling that up and sending it. Also confirming that changing botocore/endpoint.py/DEFAULT_TIMEOUT to 120 worked.

@nplutt
Copy link
Contributor

nplutt commented Nov 29, 2017

Hey @jamesls, I started working on this and was wondering if you like the idea of allowing this to be configured through an option in the deploy command. I was imagining something like:

$ chalice deploy --botocore-timeout 120

After the timeout value is consumed by the cli I was thinking about changing the CLIFactory class so that a botocore_timeout value can be set and modified.

@lenards
Copy link

lenards commented Dec 10, 2017

When this is available, I believe they settled on --connection-timeout in #629, based on the additions in commit eafa12975

However, at the time of this post, I think this in master and not up on pypi yet.

✘-1 ~/gh/tableflipless [master L|✚ 2…7] 
08:54 $ pipenv run chalice deploy --botocore-timeout 145
Error: no such option: --botocore-timeout
✘-2 ~/gh/tableflipless [master L|✚ 2…7] 
08:56 $ pipenv run chalice deploy --connection-timeout 145
Error: no such option: --connection-timeout
✘-2 ~/gh/tableflipless [master L|✚ 2…7] 
08:56 $ pipenv run chalice deploy --connection-timeout=140
Error: no such option: --connection-timeout

With chalice==1.1.0

@nplutt
Copy link
Contributor

nplutt commented Dec 10, 2017

You are correct, if you look at the change log this feature will be released with the next release which is currently TBD.

@lenards
Copy link

lenards commented Dec 10, 2017

Cool, thanks!

I just wanted to tag this issue with the command flag that was used so if someone lands here from a search, they got it.

@moneroexamples
Copy link

Not the change timeout command is:

chalice deploy --connection-timeout 120

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

No branches or pull requests

8 participants