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

Add guard against coordinator publishing worker config #91

Merged
merged 4 commits into from
Oct 16, 2024

Conversation

michaeldmitry
Copy link
Contributor

Issue

A coordinator should not publish the config to a worker if a worker has not yet published its own data (like roles and addresses).

Solution

Add a guard to check if the worker has already published its data right before we try and send the config to that worker.

@michaeldmitry michaeldmitry requested a review from a team as a code owner October 11, 2024 05:33
@michaeldmitry michaeldmitry marked this pull request as draft October 11, 2024 06:45
Copy link
Contributor

@PietroPasotti PietroPasotti left a comment

Choose a reason for hiding this comment

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

some logic tweaks in the new methods, the rest looks good!

src/cosl/coordinated_workers/interface.py Outdated Show resolved Hide resolved
src/cosl/coordinated_workers/interface.py Outdated Show resolved Hide resolved
src/cosl/coordinated_workers/interface.py Outdated Show resolved Hide resolved
src/cosl/coordinated_workers/interface.py Outdated Show resolved Hide resolved
src/cosl/coordinated_workers/interface.py Outdated Show resolved Hide resolved
src/cosl/coordinated_workers/interface.py Outdated Show resolved Hide resolved
@michaeldmitry michaeldmitry marked this pull request as ready for review October 11, 2024 11:49
Copy link
Contributor

@PietroPasotti PietroPasotti left a comment

Choose a reason for hiding this comment

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

LGTM, couple more minor nits/thoughts

src/cosl/coordinated_workers/interface.py Outdated Show resolved Hide resolved
src/cosl/coordinated_workers/interface.py Outdated Show resolved Hide resolved
@michaeldmitry michaeldmitry force-pushed the publish-requirer-first branch from 4e5ddd1 to 33179f4 Compare October 16, 2024 12:05
@michaeldmitry michaeldmitry force-pushed the publish-requirer-first branch from 079fb61 to 155c90c Compare October 16, 2024 12:15
@michaeldmitry michaeldmitry merged commit 5d8c4c9 into main Oct 16, 2024
6 of 7 checks passed
@michaeldmitry michaeldmitry deleted the publish-requirer-first branch October 16, 2024 12:18
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