Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Peng committed Aug 5, 2019
1 parent 4d21b9a commit bdf09b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sos/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class LocalHost(SoS_Host):
'''For local host, no path map, send and receive ...'''

def __init__(self, config: Dict[str, Union[str, int, List[str]]]) -> None:
super(LocakHost, self).__init__()
super(LocalHost, self).__init__()

# even if the config has an alias, we use localhost to make it clear that the host is localhost
self.alias = config.get('alias', 'localhost')
Expand Down
2 changes: 1 addition & 1 deletion src/sos/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def start_worker(self):
try:
from .hosts import Host
host = Host(wh, start_engine=False)
host._host_agent.start_workers(env.config, mw)
host._host_agent.run_command(['python', '-m', 'sos.workers'])
except Exception as e:
raise RuntimeError(f'Failed to start workers on host {wh}')
self._num_workers[idx] = self._max_workers[idx]
Expand Down

0 comments on commit bdf09b6

Please sign in to comment.