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

Improve pending api to include current executing class #6744

Closed
wants to merge 1 commit into from

Conversation

kimchy
Copy link
Member

@kimchy kimchy commented Jul 5, 2014

the pending tasks api will now include the current executing tasks (with a proper marker boolean flag)
this will also help in tests that wait for no pending tasks, to also wait till the current executing task is done

the pending tasks api will now include the current executing tasks (with a proper marker boolean flag)
this will also help in tests that wait for no pending tasks, to also wait till the current executing task is done
closes elastic#6744
@@ -279,7 +279,7 @@ public void run() {
timeInQueue = -1;
}

pendingClusterTasks.add(new PendingClusterTask(pending.insertionOrder, pending.priority, new StringText(source), timeInQueue));
pendingClusterTasks.add(new PendingClusterTask(pending.insertionOrder, pending.priority, new StringText(source), timeInQueue, pending.executing));
Copy link
Contributor

Choose a reason for hiding this comment

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

can we maybe fix this ctor to just take Pending as the first arg?

Copy link
Member Author

Choose a reason for hiding this comment

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

there are a 2 fields (the source and time in queue) that are computed on top of pending, so it would be confusing I think to pass those on top of pending

@s1monw
Copy link
Contributor

s1monw commented Jul 5, 2014

left a small comment other than than LGTM....

oh the PR needs labels ;)

@kimchy
Copy link
Member Author

kimchy commented Jul 5, 2014

@s1monw put labels, and replied to your comment

@s1monw
Copy link
Contributor

s1monw commented Jul 5, 2014

LGTM

@kimchy kimchy closed this in 1d860f7 Jul 5, 2014
kimchy added a commit that referenced this pull request Jul 5, 2014
the pending tasks api will now include the current executing tasks (with a proper marker boolean flag)
this will also help in tests that wait for no pending tasks, to also wait till the current executing task is done
closes #6744
@kimchy kimchy deleted the improve_pending branch July 5, 2014 15:41
@jpountz jpountz removed the review label Jul 16, 2014
@clintongormley clintongormley changed the title Improve pending api to include current executing class Cluster: Improve pending api to include current executing class Jul 16, 2014
@clintongormley clintongormley changed the title Cluster: Improve pending api to include current executing class Admin: Improve pending api to include current executing class Jul 16, 2014
@clintongormley clintongormley changed the title Admin: Improve pending api to include current executing class Improve pending api to include current executing class Jun 7, 2015
@clintongormley clintongormley added :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. and removed :Cluster labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. >enhancement v1.3.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants