Skip to content

Commit

Permalink
Remove old objects from distributed configuration object
Browse files Browse the repository at this point in the history
  • Loading branch information
JMGaljaard committed Sep 4, 2022
1 parent 8d36d16 commit 6353388
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions fltk/util/config/distributed_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Optional

from dataclasses_json import config, dataclass_json
from fltk.util.config.definitions import OrchestratorType

@dataclass_json
@dataclass
Expand Down Expand Up @@ -66,8 +67,7 @@ class ExecutionConfig:
@dataclass_json
@dataclass
class OrchestratorConfig:
service: str
nic: str
orchestrator_type: OrchestratorType


@dataclass_json
Expand All @@ -82,13 +82,12 @@ class ClientConfig:
class ClusterConfig:
orchestrator: OrchestratorConfig
client: ClientConfig
wait_for_clients: bool = True
namespace: str = 'test'
image: str = 'fltk:latest'

def load_incluster_namespace(self):
"""
Function to retreive information from teh cluster itself provided by K8s.
Function to retrieve information from teh cluster itself provided by K8s.
@return: None
@rtype: None
"""
Expand All @@ -114,7 +113,7 @@ def load_incluster_image(self):

@dataclass_json
@dataclass
class DistributedConfig():
class DistributedConfig:
"""
Configuration Dataclass for shared configurations between experiments. This regards your general setup, describing
elements like the utilization of CUDA accelerators, format of logging file names, whether to save experiment data
Expand Down

0 comments on commit 6353388

Please sign in to comment.