-
Notifications
You must be signed in to change notification settings - Fork 53
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
Keep browser open between Lambda invocations #42
Comments
You might try increasing the timeout of the lambda function. In my case, I do use serverless framework, so I have a config file like this
serverless.yml |
I don't think that this is a Lambda timeout issue. I'm getting the indicated response right away, and it has a stack trace that points into |
Anyone has a solution? I have the same problem. |
We ended up restarting the browser for every call, but I'm very interested in a proper solution! |
There's no guarantee that a Lambda will maintain state from one execution to the next. It may, but it is impossible to control. There's a lot of factors that go into this. If you need have more control over this, you might want to use a long-lived service such as one in ECS. |
Whenever I try to keep the browser open between invocations, it seems like the browser gets closed/killed.
This is the error I'm getting after the first invocation:
This is roughly the code I'm using:
Do you know if this is a limitation of Lambda, or is there something else going on here? 🤔
The text was updated successfully, but these errors were encountered: