Skip to content

Conversation

@mosche
Copy link
Contributor

@mosche mosche commented Jan 23, 2025

No description provided.

// If a min of 0 is requested we set the thread core count to 1, but we allow the thread cores to timeout.
// This way we still achieve the goal of having 0 threads when idle, but we do not run into the risk of running into a case
// where we have task(s) in the queue and no worker to consume them.
corePoolSize = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or corePoolSize = max

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO if we're just going to do this workaround it'd be less trappy to just reject an invalid config instead of quietly fixing it up as proposed here.

@ldematte
Copy link
Contributor

Hey @DaveCTurner , thanks for chiming in.
This is not a "real" PR (we do not plan to merge it "as is"), but the purpose is exactly this (discuss what we have found, options, and decide if and how we want to fix it). We plan to discuss at the next Core/Infra fix-it, let me know if you want to participate

@DaveCTurner
Copy link
Contributor

Yep, that's my contribution to that discussion :)

@mosche mosche closed this May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants