Package park :: Package util :: Module _torque

Module _torque

source code

Classes
  TorqueLibError
  attrl
  attropl
  batch_status
  batch_op
Functions
 
find_torque()
Load the library whereever it may be.
source code
 
pbs_errno() source code
 
demo() source code
Variables
  torque = find_torque()
  ATTR_user = ["Execution_Time", "Checkpoint", "Error_Path", "gr...
  ATTR_job = ["ctime", "exec_host", "mtime", "qtime", "session_i...
  ATTR_queue = ["acl_group_enable", "acl_groups", "acl_host_enab...
  ATTR_server = ["acl_roots", "managers", "default_queue", "defa...
  ATTR_node = ["state", "np", "properties", "ntype", "jobs", "st...
  CHECKPOINT_UNSPECIFIED = "u"
  NO_HOLD = "n"
  NO_JOIN = "n"
  NO_KEEP = "n"
  MAIL_AT_ABORT = "a"
  DELDELAY = "deldelay="
  DELPURGE = "delpurge="
  EXECQUEONLY = "exec_queue_only"
  RERUNFORCE = "force"
  USER_HOLD = "u"
  OTHER_HOLD = "o"
  SYSTEM_HOLD = "s"
  ND = ["free", "offline", "down", "reserve", "job-exclusive", "...
  Q_DT = ["batch", "interactive", "rerunable", "nonrerunable",]
  MAX_ENCODE_BFR = 100
  MGR_CMD_CREATE = 0
  MGR_CMD_DELETE = 1
  MGR_CMD_SET = 2
  MGR_CMD_UNSET = 3
  MGR_CMD_LIST = 4
  MGR_CMD_PRINT = 5
  MGR_CMD_ACTIVE = 6
  MGR_OBJ_NONE = -1
  MGR_OBJ_SERVER = 0
  MGR_OBJ_QUEUE = 1
  MGR_OBJ_JOB = 2
  MGR_OBJ_NODE = 3
  MSG_OUT = 1
  MSG_ERR = 2
  SHUT_SIG = -1
  SHUT_IMMEDIATE = 0
  SHUT_DELAY = 1
  SHUT_QUICK = 2
  SIG_RESUME = "resume"
  SIG_SUSPEND = "suspend"
  PBS_MAXHOSTNAME = 64
  MAXPATHLEN = 1024
  MAXNAMLEN = 255
  MAX_NOTE = 256
  MAX_NOTE_STR = "256"
  PBS_MAXUSER = 16
  PBS_MAXGRPN = 16
  PBS_MAXQUEUENAME = 15
  PBS_MAXSERVERNAME = 64
  PBS_MAXJOBARRAYLEN = 6
  PBS_MAXSEQNUM = 8
  PBS_MAXPORTNUM = 5
  PBS_MAXJOBARRAY = 99999
  PBS_MAXSVRJOBID = PBS_MAXSEQNUM+ PBS_MAXSERVERNAME+ PBS_MAXPOR...
  PBS_MAXCLTJOBID = PBS_MAXSVRJOBID+ PBS_MAXSERVERNAME+ PBS_MAXP...
  PBS_MAXDEST = 1024
  PBS_MAXROUTEDEST = PBS_MAXQUEUENAME+ PBS_MAXSERVERNAME+ PBS_MA...
  PBS_USE_IFF = 1
  PBS_INTERACTIVE = 1
  PBS_TERM_BUF_SZ = 80
  PBS_TERM_CCA = 6
  PBS_QS_VERSION = 0x00020300
  PBS_BATCH_SERVICE_NAME = "pbs"
  PBS_BATCH_SERVICE_PORT = 15001
  PBS_BATCH_SERVICE_NAME_DIS = "pbs_dis"
  PBS_BATCH_SERVICE_PORT_DIS = 15001
  PBS_MOM_SERVICE_NAME = "pbs_mom"
  PBS_MOM_SERVICE_PORT = 15002
  PBS_MANAGER_SERVICE_NAME = "pbs_resmon"
  PBS_MANAGER_SERVICE_PORT = 15003
  PBS_SCHEDULER_SERVICE_NAME = "pbs_sched"
  PBS_SCHEDULER_SERVICE_PORT = 15004
  resource_t = c_int
  RESOURCE_T_NULL = resource_t(0)
  RESOURCE_T_ALL = resource_t(-1)
  avail = torque.avail
  pbs_asyrunjob = torque.pbs_asyrunjob
  pbs_runjob = torque.pbs_runjob
  pbs_alterjob = torque.pbs_alterjob
  pbs_connect = torque.pbs_connect
  pbs_query_max_connections = torque.pbs_query_max_connections
  pbs_default = torque.pbs_default
  pbs_strerror = torque.pbs_strerror
  pbs_deljob = torque.pbs_deljob
  pbs_disconnect = torque.pbs_disconnect
  pbs_submit = torque.pbs_submit
  _ = ...
Variables Details

ATTR_user

Value:
["Execution_Time", "Checkpoint", "Error_Path", "group_list", "Hold_Typ\
es", "Join_Path", "Keep_Files", "Resource_List", "Mail_Points", "Outpu\
t_Path", "Priority", "destination", "Rerunable", "job_array_request", \
"job_array_id", "User_List", "Variable_List", "Account_Name", "Mail_Us\
ers", "Job_Name", "Shell_Path_List", "depend", "interactive", "stagein\
", "stageout",]

ATTR_job

Value:
["ctime", "exec_host", "mtime", "qtime", "session_id", "euser", "egrou\
p", "hashname", "hop_count", "security", "sched_hint", "substate", "Jo\
b_Name", "Job_Owner", "resources_used", "job_state", "queue", "server"\
, "max_running", "max_report", "total_jobs", "comment", "cookie", "que\
ue_rank", "alt_id", "etime", "exit_status", "forward_x11", "submit_arg\
s", "tokens", "net_counter", "umask", "start_time", "start_count", "ch\
eckpoint_dir", "checkpoint_name",]

ATTR_queue

Value:
["acl_group_enable", "acl_groups", "acl_host_enable", "acl_hosts", "ac\
l_user_enable", "acl_users", "alt_router", "checkpoint_min", "enabled"\
, "from_route_only", "hostlist", "kill_delay", "max_group_run", "max_q\
ueuable", "max_user_queuable", "max_user_run", "queue_type", "resource\
s_assigned", "resources_default", "resources_max", "resources_min", "r\
estartable", "rendezvous_retry", "route_destinations", "route_held_job\
s", "route_waiting_jobs", "route_retry_time", "route_lifetime", "reser\
ved_expedite", "reserved_sync", "started", "state_count", "number_jobs\
...

ATTR_server

Value:
["acl_roots", "managers", "default_queue", "default_node", "location_s\
ervers", "log_events", "log_file", "log_level", "mail_from", "node_pac\
k", "node_suffix", "operators", "query_other_jobs", "resources_cost", \
"resources_available", "scheduler_iteration", "scheduling", "server_st\
ate", "system_cost", "node_ping_rate", "node_check_rate", "tcp_timeout\
", "job_stat_rate", "poll_jobs", "down_on_error", "disable_server_id_c\
heck", "job_nanny", "owner_purge", "queue_centric_limits", "mom_job_sy\
nc", "mail_domain", "pbs_version", "submit_hosts", "allow_node_submit"\
...

ATTR_node

Value:
["state", "np", "properties", "ntype", "jobs", "status", "note",]

ND

Value:
["free", "offline", "down", "reserve", "job-exclusive", "job-sharing",\
 "busy", "state-unknown", "time-shared", "cluster",]

PBS_MAXSVRJOBID

Value:
PBS_MAXSEQNUM+ PBS_MAXSERVERNAME+ PBS_MAXPORTNUM+ PBS_MAXJOBARRAYLEN+ \
2

PBS_MAXCLTJOBID

Value:
PBS_MAXSVRJOBID+ PBS_MAXSERVERNAME+ PBS_MAXPORTNUM+ PBS_MAXJOBARRAYLEN\
+ 2

PBS_MAXROUTEDEST

Value:
PBS_MAXQUEUENAME+ PBS_MAXSERVERNAME+ PBS_MAXPORTNUM+ 2

_

Value:
"""
extern char *pbs_geterrmsg(int connect)
extern int pbs_holdjob(int connect,char *job_id,char *hold_type,char *\
extend)
extern char *pbs_locjob(int connect,char *job_id,char *extend)

extern char *pbs_fbserver(void)
extern int csv_length( char *str )
...