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

Testing #14

Closed
wants to merge 5 commits into from
Closed

Testing #14

wants to merge 5 commits into from

Conversation

spirali
Copy link
Collaborator

@spirali spirali commented Jan 25, 2021

No description provided.

@spirali spirali requested a review from Kobzol January 25, 2021 08:46
Copy link
Collaborator

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

How can we cache worker connections in this scheme? Have a WorkerID -> connection pool cache inside the Comm impl?

@@ -285,7 +289,7 @@ mod tests {
}
}

fn handle_messages(&mut self, _messages: Vec<ToSchedulerMessage>) -> bool {
fn handle_messages(&mut self, _messages: ToSchedulerMessage) -> bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

handle_message?

@@ -21,18 +21,16 @@ impl<Metric: NodeMetrics> Scheduler for LevelScheduler<Metric> {
}
}

fn handle_messages(&mut self, messages: Vec<ToSchedulerMessage>) -> bool {
fn handle_messages(&mut self, message: ToSchedulerMessage) -> bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

handle_message?

@@ -31,6 +31,6 @@ pub trait Scheduler {
fn identify(&self) -> SchedulerRegistration;

/// Returns true if the scheduler requires someone to invoke `schedule` sometime in the future.
fn handle_messages(&mut self, messages: Vec<ToSchedulerMessage>) -> bool;
fn handle_messages(&mut self, messages: ToSchedulerMessage) -> bool;
Copy link
Collaborator

Choose a reason for hiding this comment

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

handle_message?

if !sr.success {
invoke_scheduling |= self.rollback_steal(sr);
}
fn handle_messages(&mut self, message: ToSchedulerMessage) -> bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

handle_message?

priority: 0,
});
}
fn handle_messages(&mut self, message: ToSchedulerMessage) -> bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

handle_message?

@spirali spirali closed this Jan 27, 2021
@spirali spirali deleted the branch worker-down January 27, 2021 13:11
@Kobzol Kobzol deleted the testing branch January 27, 2021 13:12
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.

None yet

2 participants