-
Notifications
You must be signed in to change notification settings - Fork 9
Vz add orchestor service and cli interaction #535
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
Changes from 22 commits
ec747fd
c9bf604
d4c29ba
4f925d9
3eb00dc
01ef3c0
f43b0b2
92a969c
215d6ec
a7b6af1
387f732
09d3e44
3f44401
0a62211
28daea4
6d99ce9
fab620b
9d7e652
438e833
3b94879
08df14f
12fdb64
c276a8e
8d6be5b
327de5c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,12 @@ | ||||||||||||||||||||
| from abc import ABC, abstractmethod | ||||||||||||||||||||
| from typing import Dict, List, Optional | ||||||||||||||||||||
|
|
||||||||||||||||||||
| from ai.chronon.cli.plan.physical_graph import PhysicalGraph | ||||||||||||||||||||
| from ai.chronon.orchestration.ttypes import ( | ||||||||||||||||||||
| BranchMappingRequest, | ||||||||||||||||||||
| DiffResponse, | ||||||||||||||||||||
| NodeInfo, | ||||||||||||||||||||
| UploadPhysicalNodesResponse, | ||||||||||||||||||||
| ) | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| class ControllerIface(ABC): | ||||||||||||||||||||
|
|
@@ -11,20 +16,15 @@ class ControllerIface(ABC): | |||||||||||||||||||
| """ | ||||||||||||||||||||
|
|
||||||||||||||||||||
| @abstractmethod | ||||||||||||||||||||
| def fetch_missing_confs(self, node_to_hash: Dict[str, str]) -> List[str]: | ||||||||||||||||||||
| def fetch_missing_confs(self, node_to_hash: Dict[str, str]) -> DiffResponse: | ||||||||||||||||||||
| # req = DiffRequest(namesToHashes=node_to_hash) | ||||||||||||||||||||
| # TODO -- call API | ||||||||||||||||||||
| pass | ||||||||||||||||||||
|
Comment on lines
+18
to
21
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Implement method with proper API call Placeholder needs implementation. def fetch_missing_confs(self, node_to_hash: Dict[str, str]) -> DiffResponse:
- # req = DiffRequest(namesToHashes=node_to_hash)
- # TODO -- call API
+ from ai.chronon.orchestration.ttypes import DiffRequest
+ request = DiffRequest(namesToHashes=node_to_hash)
+ # TODO -- Make actual API call to backend service
pass📝 Committable suggestion
Suggested change
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| @abstractmethod | ||||||||||||||||||||
| def upload_conf(self, name: str, hash: str, content: str) -> None: | ||||||||||||||||||||
| pass | ||||||||||||||||||||
|
|
||||||||||||||||||||
| @abstractmethod | ||||||||||||||||||||
| def create_workflow( | ||||||||||||||||||||
| self, physical_graph: PhysicalGraph, start_date: str, end_date: str | ||||||||||||||||||||
| ) -> str: | ||||||||||||||||||||
| """ | ||||||||||||||||||||
| Submit a physical graph to the orchestrator and return workflow id | ||||||||||||||||||||
| """ | ||||||||||||||||||||
| def upload_branch_mappsing(self, node_info: List[NodeInfo], branch: str): | ||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: upload_branch_mapping |
||||||||||||||||||||
| # TODO | ||||||||||||||||||||
| BranchMappingRequest() | ||||||||||||||||||||
| pass | ||||||||||||||||||||
|
|
||||||||||||||||||||
| @abstractmethod | ||||||||||||||||||||
|
|
||||||||||||||||||||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| package ai.chronon.orchestration.utils | ||
| package ai.chronon.api | ||
|
|
||
| import scala.collection.Seq | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.