Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Nov 26, 2024
1 parent e5e5411 commit 37394b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spalloc_client/spalloc_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def _read_none_or_str(


class SpallocConfig(object):
""" Typed configs """

__slots__ = ("_hostname", "_ignore_version", "_keepalive", "_machine",
"_max_dead_boards", "_max_dead_links", "_min_ratio",
Expand Down Expand Up @@ -201,54 +202,67 @@ def __init__(self, filenames: Optional[List[str]] = None):

@property
def hostname(self) -> Optional[str]:
""" Name of the spalloc server if specified """
return self._hostname

@property
def ignore_version(self) -> bool:
""" Flag to say version can be ignored """
return self._ignore_version

@property
def keepalive(self) -> Optional[float]:
""" Time to keep job allive """
return self._keepalive

@property
def machine(self) -> Optional[str]:
""" Name of the spalloc machine to use"""
return self._machine

@property
def max_dead_boards(self) -> Optional[int]:
""" How many dead boards are allowed in the job"""
return self._max_dead_boards

@property
def max_dead_links(self) -> Optional[int]:
""" How many dead links are allowed in the Job"""
return self._max_dead_links

@property
def min_ratio(self) -> float:
""" Min ratio"""
return self._min_ratio

@property
def owner(self) -> Optional[str]:
""" Owner to assign job to """
return self._owner

@property
def port(self) -> int:
""" Spalloc server port"""
return self._port

@property
def reconnect_delay(self) -> float:
""" Reconnect delay """
return self._reconnect_delay

@property
def require_torus(self) -> bool:
""" Flag to say a torus is required """
return self._require_torus

@property
def tags(self) -> Optional[List[str]]:
""" List of tags """
return self._tags

@property
def timeout(self) -> Optional[float]:
""" Time before a command should timeout """
return self._timeout


Expand Down

0 comments on commit 37394b4

Please sign in to comment.