Replies: 1 comment 2 replies
-
Hi @kalverra I'm trying to get more context of this. In the meantime, that code was added here: #593. Could you take a look 🙏 ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed this global mutex that is flipped on when
Reuse: true
, and am curious as to why, specifically when the container is "in a parallel execution, via ParallelContainers or t.Parallel()".I ask as we are working on an extensive test suite running with
t.Parallel()
, each test launching a decent amount of testcontainers. We hadReuse: true
to help us with some of our retry logic, but found thattestcontainers
was limiting how many containers could launch at once when running multiple tests in parallel, seemingly arbitrarily, even when there was plenty of RAM and CPU available. After settingReuse: false
, we no longer have that issue and take full advantage of available resources. I'm wondering:Reuse: true
? Why?testcontainers-y
way to accomplish this than our current style of settingReuse: true
and fiddling with the container request before relaunching it.Beta Was this translation helpful? Give feedback.
All reactions