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

Return multiple tasks in poll_work based on free slots #429

Merged
merged 3 commits into from
Oct 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use multiple tasks in polling
  • Loading branch information
Dandandan committed Oct 22, 2022
commit 3e0da79281797d55e55728f863a04b034ed91d3b
2 changes: 1 addition & 1 deletion ballista/scheduler/src/scheduler_server/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan> SchedulerGrpc
Status::internal(msg)
})?;

// If executor can accept another task, try and find one.
// Find `num_free_slots` next tasks when available
let mut next_tasks = vec![];
for _ in 0..num_free_slots {
let reservations =
Expand Down