Open yardfarmer opened 4 years ago
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() ?
closeConnection()
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.
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()
?