JobStatus

JobStatus

JobStatus holds information about a DART job running in child process. The main Worker class collects messages from events in child processes, wraps them in a JobStatus object and prints them to STDOUT, where the parent process can read them.

Constructor

new JobStatus()

Source:

Members

action :string

The action currently being carried out. Most operations consist of multiple actions.

Source:

errors :Array.<string>

A list of errors that occurred in the most recent action of the child process.

Source:

exception :string

An exception that occured in the most recent action of the child process. This is usually null, since most errors are expected and handled, and will show up in the errors array.

When this is not null, it usually means an unexpected error occurred which prevented the operation from completing.

Source:

msg :string

A message describing what is happening in the child process.

Source:

op :string

The name of the operation that the child process is currently carrying out. See Constants.OP_STATUSES for a list of valid values.

Source:

percentComplete :string

Percent completion of the task. This should be a number between 0 and 100. If it's less than zero, it should be ignored.

Source:

status :string

The status of the child process. See Constants.OP_STATUSES.

Source: