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

Do not call container starting and started lifecycle hooks if container is reused #625

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

cristianrgreco
Copy link
Collaborator

@cristianrgreco cristianrgreco commented Aug 4, 2023

If when we start a container with reuse we detect that a suitable container already exists, we should not call the containerStarting and containerStarted hooks on the reused container, as these hooks have already been called. This may introduce incorrect behaviour and negatively affects performance.

@cristianrgreco cristianrgreco added bug Something isn't working patch Backward compatible bug fix labels Aug 4, 2023
@cristianrgreco cristianrgreco self-assigned this Aug 4, 2023
@netlify
Copy link

netlify bot commented Aug 4, 2023

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 333693c
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/64ccdf8cbd25d700087abd91
😎 Deploy Preview https://deploy-preview-625--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cristianrgreco cristianrgreco changed the title Do not call container starting, started lifecycle hooks if container is reused Do not call container starting and started lifecycle hooks if container is reused Aug 4, 2023
@cristianrgreco cristianrgreco merged commit 879ada2 into main Aug 4, 2023
24 checks passed
@cristianrgreco cristianrgreco deleted the skip-lifecycle-hooks-reusable-containers branch August 4, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch Backward compatible bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant