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

Fix dora list listing twice a stopping dataflow when using multiple daemon. #668

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

haixuanTao
Copy link
Collaborator

Previously, When a daemon stop it sends a message to the coordinator which will log it as an archived dataflow even though not every daemon has stopped within the dataflow.

This PR should fix this issue.

Comment on lines 274 to 277
println!(
"removed machine id: {machine_id} from dataflow: {:#?}",
dataflow.uuid
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you change this println to a tracing::info or tracing::debug?

Comment on lines 283 to 286
dataflow_results
.entry(uuid)
.or_default()
.insert(machine_id, result);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you clarify why you moved this statement into the if body too? We want to store the results of all machines, not just the last one.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Edit: Actually, you're right I should only move the archive_dataflow within the if statement.

@haixuanTao haixuanTao force-pushed the fix-distributed-daemon branch from d0bbe6b to 07ed728 Compare October 8, 2024 05:01
@phil-opp phil-opp merged commit 3d6360d into main Oct 8, 2024
40 checks passed
@phil-opp phil-opp deleted the fix-distributed-daemon branch October 8, 2024 08:56
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