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

allow multiple on demand requests to be queued up #950

Merged
merged 2 commits into from
Apr 28, 2016
Merged

Conversation

ssalinas
Copy link
Member

/cc @jhaber @jonathanwgoodwin

@ssalinas
Copy link
Member Author

@wsorenson @tpetr traced back through the different PendingTypes we could possibly get in combination with the ONEOFF type. Those are: RETRY, DECOMISSIONED_SLAVE_OR_RACK, UPDATED_REQUEST, or TASK_DONE. No others are currently created for an on demand request.

RETRY -> create another identical oneoff, there is no conflict here as both kinds just schedule a single task with the relevant options
DECOMISSIONED_SLAVE_OR_RACK - > no problem there, no new tasks will be scheduled for a oneoff
TASK_DONE -> Similar, we do not schedule new tasks for a oneoff on task done
UPDATED_REQUEST -> This was the only possible relevant one (for values like killOldNonLongRunningTasksAfterMillis which I don't believe we wired up for on demand anyway). However, when we encounter this pending type the update to request data is already finished and we do not schedule any new oneoff tasks for a UPDATED_REQUEST pending type

@ssalinas
Copy link
Member Author

quick addition, misread an if statement, we in fact do not get a UPDATED_REQUEST pending type for on demand requests

@jhaber
Copy link
Member

jhaber commented Mar 14, 2016

There are no words to express my excitement 👯

@ssalinas ssalinas added the hs_qa label Mar 16, 2016
@ssalinas ssalinas modified the milestone: 0.4.12 Mar 18, 2016
@ssalinas ssalinas modified the milestones: 0.5.0, 0.6.0 Apr 5, 2016
@ssalinas
Copy link
Member Author

This has been performing well with no issues, going to merge

@ssalinas ssalinas merged commit f257530 into master Apr 28, 2016
@ssalinas ssalinas deleted the on_demand_multi branch April 28, 2016 12: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