schrodinger.ui.qt.appframework2.jobs module

Utility functions for af2 job submission and management

schrodinger.ui.qt.appframework2.jobs.set_sh_file_flags(filename)
schrodinger.ui.qt.appframework2.jobs.get_first_hostname(host)

Given a host string, get the corresponding hosts list from jobcontrol and return the first hostname from that list.

Parameters

host (string) –

Hosts string which determine the string value of result server argument. These are values usually from configuration dialog and is of the form “galina” or “galina:1” or “galina,monica” or “galina:2,monica:3” or “galina monica” or “galina:2 monica:3”.

rtype

str

return

Hostname based on the first of the first hosts in the jobcontrol list.

schrodinger.ui.qt.appframework2.jobs.job_belongs_to_panel(jobid, viewname)

Return True if jobid belongs to viewname of a panel. Used by incorporation callbacks to determine if the job belongs to us.

Parameters
  • jobid (str) – jobid for a given job

  • viewname (str) – viewname corresponding to panel