Skip to content

Deprioritize STARTUP-type pending requests.#1825

Merged
ssalinas merged 5 commits into
masterfrom
deprioritize-STARTUP-pending-requests
Aug 9, 2018
Merged

Deprioritize STARTUP-type pending requests.#1825
ssalinas merged 5 commits into
masterfrom
deprioritize-STARTUP-pending-requests

Conversation

@baconmania

Copy link
Copy Markdown
Contributor

No description provided.

SingularityCreateResult result = create(getPendingPath(pendingRequest), pendingRequest, pendingRequestTranscoder);

if (result == SingularityCreateResult.EXISTED) {
SingularityPendingRequest existingPendingRequest = getPendingRequest(pendingRequest.getRequestId(), pendingRequest.getDeployId()).get();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since the scheduler poller could run between the create and this get, we can't assume that this optional will be present. Should probably add the isPresent check

@ssalinas

ssalinas commented Aug 6, 2018

Copy link
Copy Markdown
Contributor

🚢

@ssalinas ssalinas added this to the 0.21.0 milestone Aug 9, 2018
@ssalinas ssalinas merged commit 1fb665e into master Aug 9, 2018
@ssalinas ssalinas deleted the deprioritize-STARTUP-pending-requests branch August 9, 2018 16:51
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