Skip to content

Commit

Permalink
Add docstring for hostname of ComputeNode
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice committed May 8, 2024
1 parent 06fd85e commit 8aa42d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions milatools/utils/compute_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class ComputeNode(Runner):
"""A handle to the subprocess that is running the `salloc` command."""

hostname: str = dataclasses.field(init=False)
"""Name of the compute node, as seen in `squeue`, `sacct` or `$SLURMD_NODENAME`."""

_closed: bool = dataclasses.field(default=False, init=False, repr=False)

Expand Down

0 comments on commit 8aa42d0

Please sign in to comment.