4
<!-- Manpage converted by man2html 3.0.1 -->
6
drmaa_job_ps, drmaa_control, - Monitor and control jobs
14
char *error_diagnosis,
21
char *error_diagnosis,
26
The drmaa_job_ps() function returns the status of the Grid
27
Engine job <I>job</I>_<I>id</I> into the integer pointed to by <I>remote</I>_<I>ps</I>.
28
Possible return values are
30
DRMAA_PS_UNDETERMINED job status cannot be determined
31
DRMAA_PS_QUEUED_ACTIVE job is queued and active
32
DRMAA_PS_SYSTEM_ON_HOLD job is queued and in system hold
33
DRMAA_PS_USER_ON_HOLD job is queued and in user hold
34
DRMAA_PS_USER_SYSTEM_ON_HOLD job is queued and in user and system hold
35
DRMAA_PS_RUNNING job is running
36
DRMAA_PS_SYSTEM_SUSPENDED job is system suspended
37
DRMAA_PS_USER_SUSPENDED job is user suspended
38
DRMAA_PS_DONE job finished normally
39
DRMAA_PS_FAILED job finished, but failed
41
Jobs' user hold and user suspend states can be controlled
42
via <B><A HREF="../htmlman3/drmaa_control.html">drmaa_control(3)</A></B>. For affecting system hold and system
43
suspend states the appropriate Grid Engine interfaces must
47
The drmaa_control() function applies control operations on
48
Grid Engine jobs. <I>jobid</I> may contain either an Grid Engine
49
jobid or `DRMAA_JOB_IDS_SESSION_ALL' to refer to all jobs
50
submitted during the DRMAA session opened using
51
<B><A HREF="../htmlman3/drmaa_init.html">drmaa_init(3)</A></B>. Legal values for <I>action</I> and their meanings
54
DRMAA_CONTROL_SUSPEND suspend the job
55
DRMAA_CONTROL_RESUME resume the job,
56
DRMAA_CONTROL_HOLD put the job on-hold
57
DRMAA_CONTROL_RELEASE release the hold on the job
58
DRMAA_CONTROL_TERMINATE kill the job
60
The DRMAA suspend/resume operations are equivalent to the
61
use of `-s <jobid>' and `-us <jobid>' options with Grid
62
Engine <B><A HREF="../htmlman1/qmod.html">qmod(1)</A></B>. The DRMAA hold/release operations are
63
equivalent to the use of Grid Engine <B><A HREF="../htmlman1/qhold.html">qhold(1)</A></B> and <B><A HREF="../htmlman1/qrls.html">qrls(1)</A></B>.
64
The DRMAA terminate operation is equivalent to the use of
65
Grid Engine <B><A HREF="../htmlman1/qdel.html">qdel(1)</A></B>. Only user hold and user suspend can be
66
controlled via <B><A HREF="../htmlman3/drmaa_control.html">drmaa_control(3)</A></B>. For affecting system hold
67
and system suspend states the appropriate Grid Engine inter-
70
ENVIRONMENTAL VARIABLES
71
SGE_ROOT Specifies the location of the Grid Engine
72
standard configuration files.
74
SGE_CELL If set, specifies the default Grid Engine
75
cell to be used. To address a Grid Engine
76
cell Grid Engine uses (in the order of pre-
79
The name of the cell specified in the
80
environment variable SGE_CELL, if it is
83
The name of the default cell, i.e.
88
If set, specifies that debug information
89
should be written to stderr. In addition the
90
level of detail in which debug information is
94
If set, specifies the tcp port on which
95
<B><A HREF="../htmlman8/sge_qmaster.html">sge_qmaster(8)</A></B> is expected to listen for com-
96
munication requests. Most installations will
97
use a services map entry instead to define
101
Upon successful completion, drmaa_job_ps(), and
102
drmaa_control() return DRMAA_ERRNO_SUCCESS. Other values
103
indicate an error. Up to <I>error</I>_<I>diag</I>_<I>len</I> characters of error
104
related diagnosis information is then provided in the
105
buffer, <I>error</I>_<I>diagnosis</I>.
108
The drmaa_job_ps(), and drmaa_control() will fail if:
110
DRMAA_ERRNO_INTERNAL_ERROR
111
Unexpected or internal DRMAA error, like system call
114
DRMAA_ERRNO_DRM_COMMUNICATION_FAILURE
115
Could not contact DRM system for this request.
117
DRMAA_ERRNO_AUTH_FAILURE
118
The specified request was not processed successfully due to
119
authorization failure.
121
DRMAA_ERRNO_INVALID_ARGUMENT
122
The input value for an argument is invalid.
124
DRMAA_ERRNO_NO_ACTIVE_SESSION
125
Failed because there is no active session.
127
DRMAA_ERRNO_NO_MEMORY
128
Failed allocating memory.
130
DRMAA_ERRNO_INVALID_JOB
131
The specified job does not exist.
133
The drmaa_control() will fail if:
135
DRMAA_ERRNO_RESUME_INCONSISTENT_STATE
136
The job is not suspended. The resume request will not be
139
DRMAA_ERRNO_SUSPEND_INCONSISTENT_STATE
140
The job is not running and thus cannot be suspended.
142
DRMAA_ERRNO_HOLD_INCONSISTENT_STATE
143
The job cannot be moved to a hold state.
145
DRMAA_ERRNO_RELEASE_INCONSISTENT_STATE
146
The job is not in a hold state.
149
<B><A HREF="../htmlman3/drmaa_submit.html">drmaa_submit(3)</A></B>and <B><A HREF="../htmlman3/drmaa_wait.html">drmaa_wait(3)</A></B>.
165
Man(1) output converted with
166
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>