-
Notifications
You must be signed in to change notification settings - Fork 110
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
[JENKINS-27650] TCB plugin performance (extra caching) #28
base: master
Are you sure you want to change the base?
Conversation
The approach is not ready.
@@ -158,7 +233,7 @@ else if (tjp.getThrottleOption().equals("category")) { | |||
int totalRunCount = 0; | |||
|
|||
for (AbstractProject<?,?> catProj : categoryProjects) { | |||
if (Hudson.getInstance().getQueue().isPending(catProj)) { | |||
if (checkPending && Hudson.getInstance().getQueue().isPending(catProj)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a bad idea from another commit. I'll rework it
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>matrix-project</artifactId> | ||
<version>1.0</version> | ||
<type>jar</type> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type
can be omitted BTW
Merging with #27 will be hard. Probably you could just merge the first three commits, but the fourth ( This seems risky: code mistakes or oversights could easily lead to a stale cache. |
Yes, I'm also aware about it. I consider flushing the cache on updates and other conditions. There's still a risk of false-negatives deadlock if something is implemented incorrectly. Probably, a periodic cache cleanup (e.g. every 1 minute) could prevent it |
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
@oleg-nenashev The last update to this PR was 4 years ago. Can this PR be closed to clean up the open pull requests list? |
The approach is not ready (see the idea in #27 ).
Merge with #27 is also required