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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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