-
Notifications
You must be signed in to change notification settings - Fork 75
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
Adding Different Queuing Strategies #4
Conversation
Jenkins » priority-sorter-plugin #5 SUCCESS |
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
}); | ||
return; | ||
} | ||
// If the queue is empty reset the internal priority counters |
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.
What about two other strategies?
Anyway, it would be better to have a class for each strategy, which stores sorting methods and configuration stuff. Then, it will be much easier to convert these classes to extensions at some point.
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.
The two strategies above this line doesn't use the counter but the two below do.
Yes it would be better and I do plan in the next dev phase treat strategies as Extensions but as of now I would like to keep this hard-coded and make sure that the overall concept and implementation is valid before going there.
Jenkins » priority-sorter-plugin #6 SUCCESS |
Jenkins » priority-sorter-plugin #7 SUCCESS |
Jenkins » priority-sorter-plugin #8 SUCCESS |
Jenkins » priority-sorter-plugin #9 SUCCESS |
Jenkins » priority-sorter-plugin #10 SUCCESS |
plugins » priority-sorter-plugin #1 SUCCESS |
Caching actual/calculated priority value on the Job to avoid recalculation when rendering the priority column.
plugins » priority-sorter-plugin #2 SUCCESS |
plugins » priority-sorter-plugin #20 SUCCESS |
plugins » priority-sorter-plugin #21 SUCCESS |
What about cache-alike approach? You can just recalculate the queue only once after the restart. In my installation:
|
Ok, I understand the problem and will implement another solution. Do you have any other consideration on the setup; any other major things need fixing? |
plugins » priority-sorter-plugin #22 FAILURE |
plugins » priority-sorter-plugin #23 SUCCESS |
PriorityConfiguration::get() returns null on start in my case. Saving of global configuration fails, many other methods may suffer as well |
Isn't that strange? I have seen that happen and I do not really understand how that can even happen ... ? |
It may happen when the plugin goes to legacy mode, but somehow continues operating in AdvancedQueue. BTW, I cannot reproduce the issue after cleanup of "work" directory, so the issue may be related to switching between dev. versions |
…plemented as describable items, but the config.jelly has not been implemented yet. Signed-off-by: Oleg Nenashev <[email protected]>
But even in Legacy mode all extension should be loaded I cannot see how this can happen. I guess it has something to do with dev versions and incomplete deploys. |
Signed-off-by: Oleg Nenashev <[email protected]>
Signed-off-by: Oleg Nenashev <[email protected]>
Signed-off-by: Oleg Nenashev <[email protected]>
Signed-off-by: Oleg Nenashev <[email protected]>
…buckets number definitions Signed-off-by: Oleg Nenashev <[email protected]>
Signed-off-by: Oleg Nenashev <[email protected]>
Signed-off-by: Oleg Nenashev <[email protected]>
Signed-off-by: Oleg Nenashev <[email protected]>
Describable strategies.
plugins » priority-sorter-plugin #24 SUCCESS |
plugins » priority-sorter-plugin #25 SUCCESS |
Adding Different Queue Sorting Strategies and Strategies to assign Priorities to Jobs.
|
||
import jenkins.model.Jenkins; | ||
|
||
import org.apache.tools.ant.ExtensionPoint; |
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.
The changes moves to Priority Sorter to 2.0-SNAPSHOT
In "Advanced" mode: