Package schrodinger :: Package test :: Package squish :: Package maestro :: Module job_monitor :: Class JobMonitor
[hide private]
[frames] | no frames]

Class JobMonitor

Squish wrapper for Schrodinger job control API

Instance Methods [hide private]
 
open(self)
Opens the Job Monitor window.
 
close(self)
Closes the Job Monitor window.
 
kill(self, jobname)
Kills the named job.
 
get_status(self, jobname, time_out_msec=default_wait)
Returns the JobControl status of a job.
 
wait_for_status(self, jobname, desired_status, time_out_msec=default_wait)
Waits until the named job achieves the specified status.
 
refresh(self)
Deprecated.
 
monitor(self, jobname)
Deprecated.
 
select(self, jobname)
Deprecated.
 
get_jobnames(self)
Returns list of all jobnames in jobdb.
 
get_statuses(self)
Returns dict of Jobname and status for all jobs.
 
get_jobs(self)
Returns dict of Jobname and Job Objects for all jobs.
Method Details [hide private]

kill(self, jobname)

 

Kills the named job.

Parameters:
  • jobname - The name of the job to be killed.

get_status(self, jobname, time_out_msec=default_wait)

 

Returns the JobControl status of a job.

Parameters:
  • jobname - The name of the job @return : Its current JobControl status

wait_for_status(self, jobname, desired_status, time_out_msec=default_wait)

 

Waits until the named job achieves the specified status. Fails after Time-out ms.

Parameters:
  • jobname - Name of the job to watch
  • status - Desired status
  • time_out_msec - Length of time to wait in ms (default 20000ms). @return : True if the status is achieved, exception otherwise.