2.5.
CLASS: TASK
CHAPTER 2.
API REFERENCE
2.5
Class: task
2.5.1
Fields for class: task
Name
task
Description
A long-running asynchronous task.
Quals
Field
Type
Description
RO
run
uuid
string
unique identifier/object reference
RO
run
name/label
string
a human-readable name
RO
run
name/description
string
a
notes
field
containg
human-
readable description
RO
run
allowed operations
(task allowed operations) Set
list of the operations allowed in this
state. This list is advisory only and
the server state may have changed by
the time this field is read by a client.
RO
run
current operations
(string
→
task allowed operations) Map
links each of the running tasks using
this object (by reference) to a cur-
rent operation enum which describes
the nature of the task.
RO
run
created
datetime
Time task was created
RO
run
finished
datetime
Time task finished (i.e.
succeeded
or failed). If task-status is pending,
then the value of this field has no
meaning
RO
run
status
task status type
current status of the task
RO
run
session
session ref
the session that created the task
RO
run
resident on
host ref
the host on which the task is running
RO
run
progress
float
if the task is still pending, this field
contains the estimated fraction com-
plete (0.-1.). If task has completed
(successfully or unsuccessfully) this
should be 1.
RO
run
externalpid
int
If the task has spawned a program,
the field record the PID of the pro-
cess that the task is waiting on. (-1 if
no waiting completion of an external
program )
RO
run
stunnelpid
int
If the task has been forwarded, this
field records the pid of the stunnel
process spawned to manage the for-
warding connection
RO
run
forwarded
bool
True if this task has been forwarded
to a slave
RO
run
forwarded to
host ref
The host to which the task has been
forwarded
RO
run
type
string
if the task has completed successfully,
this field contains the type of the en-
coded result (i.e. name of the class
whose reference is in the result field).
Undefined otherwise.
RO
run
result
string
if the task has completed successfully,
this field contains the result value (ei-
ther Void or an object reference). Un-
defined otherwise.
26