Skip to content

Commit

Permalink
fix graph definition
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanu committed Nov 6, 2024
1 parent 0d5471a commit c88dc6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python-sdk/indexify/functions_sdk/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def definition(self) -> ComputeGraphMetadata:
reducer=start_node.accumulate is not None,
image_name=start_node.image._image_name,
image_information=start_node.image.to_image_information(),
encoder=start_node.encoder
payload_encoder=start_node.encoder
)
metadata_edges = self.edges.copy()
metadata_nodes = {}
Expand All @@ -172,7 +172,7 @@ def definition(self) -> ComputeGraphMetadata:
description=node.description or "",
source_fn=node_name,
target_fns=self.routers[node_name],
encoder=node.encoder,
payload_encoder=node.encoder,
image_name=node.image._image_name,
image_information=node.image.to_image_information(),
)
Expand Down
4 changes: 2 additions & 2 deletions python-sdk/indexify/functions_sdk/graph_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FunctionMetadata(BaseModel):
reducer: bool = False
image_name: str
image_information: ImageInformation
encoder: str = "cloudpickle"
payload_encoder: str = "cloudpickle"


class RouterMetadata(BaseModel):
Expand All @@ -24,7 +24,7 @@ class RouterMetadata(BaseModel):
target_fns: List[str]
image_name: str
image_information: ImageInformation
encoder: str = "cloudpickle"
payload_encoder: str = "cloudpickle"


class NodeMetadata(BaseModel):
Expand Down

0 comments on commit c88dc6f

Please sign in to comment.