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

DB don't need close connection? #6

Open
yardfarmer opened this issue Jul 16, 2020 · 1 comment
Open

DB don't need close connection? #6

yardfarmer opened this issue Jul 16, 2020 · 1 comment

Comments

@yardfarmer
Copy link

https://github.com/midwayjs/midway-faas-examples/blob/1435f94b03c978ded068e71b45d4feeb3d03333a/integration/rds-mysql/boilerplate/src/apis/configuration.ts#L18

in container lifeCycle onStop if need closeConnection() ?

@czy88840616
Copy link
Member

After testing, close has no effect. container is destroyed after a period of time, so this lifecycle will not be triggered when function is unloaded.

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

No branches or pull requests

2 participants