new JobInfo(parameters)
Class describing an executor job. The data is used for communication between the initiator/a monitor of the job and the worker executing the job.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
parameters |
object |
Properties
|
Members
-
<static> finishedStatuses :Array.<string>
-
Array of statuses where the job hash finished and won't proceed.
Type:
-
createTime :string
-
Timestamp of when the job was created.
Type:
-
finishTime :string
-
Timestamp of when the job execution finished on the worker.
Type:
-
hash :string
-
Job identifier.
Type:
-
labels :Array.<string>
-
Array of labels for the job.
Type:
-
outputNumber :number
-
The (id) outputNumber (0, 1, 2, ...) of the latest OutputInfo (for this job) available on the server. When no output is available the number is null.
Type:
-
resultHashes :Array.<string>
-
Array of hashes to Artifacts containing each requested result.
Type:
-
resultSuperSet :string
-
Hash to an Artifact containing the union of all requests results.
Type:
-
startTime :string
-
Timestamp of when the job execution started by a worker.
Type:
-
status :string
-
Current status of the job.
Type:
-
worker :string
-
Id/label of the worker processing the job.
Type:
Methods
-
<static> isFailedFinishedStatus(status)
-
Returns true if the provided status is a failed finished status.
Parameters:
Name Type Description status
string The status of a job.
Returns:
- Type
- boolean
-
<static> isFinishedStatus(status)
-
Returns true of the provided status is a finished status.
Parameters:
Name Type Description status
string The status of a job.
Returns:
- Type
- boolean