schrodinger.job.host_check module¶
This module provides functions to support hosts-file and remote-command configuration in the Configuration GUI.
-
class
schrodinger.job.host_check.
Error
(message, level=None, description='', advice='', output='')¶ Bases:
object
An Error represents an system-level issue that prevents remote commands executed via ssh from succeeding.
-
__init__
(message, level=None, description='', advice='', output='')¶ Initialize self. See help(type(self)) for accurate signature.
-
-
schrodinger.job.host_check.
ssh_check
(host, user='')¶ Check whether remote commands to the given host succeed or not. An alternate remote account name can be specified.
Results are returned in a list of Error objects reporting any serious problems uncovered with remote commands to the specified host.
The current implementation involves executing a separate test program to diagnose remote-command issues, remote_command.pl.
-
schrodinger.job.host_check.
host_check
(entry, hostfile='', cwd=None)¶ Check whether jobs can be run successfully using the given host entry. A non-default hosts file can be specified; otherwise the usual hosts file is used.
Results are returned in a list of Error objects reporting any serious problems uncovered with jobs launched to the specified host entry.
The current implementation involves executing a separate test program, “$SCHRODINGER/installation_check”, to manage the test job and diagnose the problem, if it fails.
Parameters: cwd (str) – Use to set the current working directory.