Skip to content

Commit

Permalink
Merge pull request #8980 from OpenMined/bschell/make-projects-share-i…
Browse files Browse the repository at this point in the history
…d-in-network-nodes

Add distributed project ID that's shared with client projects
  • Loading branch information
BrendanSchell authored Jun 27, 2024
2 parents 77e9f42 + 955e4a1 commit 4d4ab48
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

class DistributedProject(BaseModel):
model_config = ConfigDict(arbitrary_types_allowed=True)

id: UID = Field(default_factory=UID)
name: str
description: str = ""
code: UserCode | SubmitUserCode # only one code per project for this prototype
Expand Down Expand Up @@ -226,6 +226,7 @@ def _submit_project_to_all_clients(self) -> dict[SyftClient, Project]:
# Creating projects and code requests separately across each client
# TODO handle failures in between
new_project = ProjectSubmit(
id=self.id,
name=self.name,
description=self.description,
members=[client],
Expand Down

0 comments on commit 4d4ab48

Please sign in to comment.