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

Request Priority API #2245

Merged
merged 12 commits into from
Dec 1, 2021
Merged

Request Priority API #2245

merged 12 commits into from
Dec 1, 2021

Conversation

WH77
Copy link
Contributor

@WH77 WH77 commented Nov 16, 2021

Adds an API for modifying request scheduling priority, similar to the request scale API, for cases where specific requests need to be prioritized/deprioritized temporarily or permanently.

Skipped email support, because this isn't intended to be a common action.

Can add UI support similar to the request scale API to this PR, if desired.

cc - @ssalinas, @pschoenfelder

@@ -3,6 +3,7 @@
public enum SingularityAction {
BOUNCE_REQUEST(true),
SCALE_REQUEST(true),
PRIORITIZE_REQUEST(true),
Copy link
Member

Choose a reason for hiding this comment

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

quick note, there is an equivalent list in SingularityUI code that mirrors this enum

Comment on lines 35 to 36
PRIORITIZED,
PRIORITY_REVERTED
Copy link
Member

Choose a reason for hiding this comment

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

are we able to maybe fold these into UPDATED instead somehow? these fields come through on things that a lot of other systems pull in and the roll out can be a pain with the deployer/etc having to know about all the new fields first. If the purpose is just to indicate the action more easily, we can always have the messge text reflect that, which will also show in the UI

@ssalinas
Copy link
Member

ssalinas commented Dec 1, 2021

🚢

@WH77 WH77 merged commit ff09baf into master Dec 1, 2021
@WH77 WH77 deleted the request-priority branch December 1, 2021 19:19
@ssalinas ssalinas added this to the 1.5.0 milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants