Merged
Conversation
Member
VsevolodX
commented
Feb 19, 2026
- feat: add compute class
- update: import code, esse
- update: test ide class
- update: add corrections
|
|
||
| from mat3ra.ide import Cluster, Compute, Queue, QueueName | ||
|
|
||
| FQDN = "master-1-staging.exabyte.io" |
| max_ppn=data["MAX-PPN"], | ||
| max_nodes=data["NODE-LIMIT"], | ||
| available_nodes=data["MAX-AVAILABLE-NODECT"], | ||
| current_nodes=data["CURRENT-NODECT"], |
Member
There was a problem hiding this comment.
- Define schema in ESSE
- Transform when receiving message in webapp
- Update here including JS codebase
| pass | ||
|
|
||
|
|
||
| class Cluster(ClusterESSE, InMemoryEntitySnakeCase): |
Member
There was a problem hiding this comment.
This is not the right cluster
Member
Author
There was a problem hiding this comment.
looks like the one actually. we need fqdn for the job creation, not the full one.
| ppn: int = 1 | ||
| # ESSE should define default | ||
| timeLimit: Optional[str] = "01:00:00" | ||
| cluster: Optional[Cluster] = None |
|
|
||
| from mat3ra.code.entity import InMemoryEntitySnakeCase | ||
| from mat3ra.esse.models.compute.nodes.cluster import ClusterNodeSchema | ||
| from mat3ra.esse.models.job.compute import ComputeArgumentsSchema, Cluster as ClusterInfoSchema |
| return next((q for q in self.queues if q.name == name), None) | ||
|
|
||
|
|
||
| class ClusterInfo(ClusterInfoSchema, InMemoryEntitySnakeCase): |
| cluster: Optional[Cluster] = None | ||
|
|
||
| @field_serializer("cluster", when_used="json") | ||
| def serialize_cluster(self, cluster: Optional[Cluster]): |
| class Cluster(ClusterNodeSchema, InMemoryEntitySnakeCase): | ||
| queues: List[Queue] = [] | ||
|
|
||
| def get_queue(self, name: QueueName) -> Optional[Queue]: |
timurbazhirov
approved these changes
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.