Job

Job

Class that manages info and execution of a particular job

Constructor

new Job()

Source:

Members

date :string

The date the job was created (UTC) Saved in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ Eg. 2020-05-21T15:50:13Z

Source:
Type:
  • string

records

Source:

results

Source:

run :string

The run name

Source:
Type:
  • string

Methods

(static) fromJSON(json) → {Job}

Creates a new Job object from JSON

Source:
Parameters:
Name Type Description
json Object
Returns:
Type:
Job

(async, static) lazyFetchJobForKey(key)

This routine loads a Job It checks first for it locally - if it's not there, it loads it remotely It then saves it locally for faster access

Source:
Parameters:
Name Type Description
key string

addProcessedCount(countopt)

Increments the number of records being processed

Source:
Parameters:
Name Type Attributes Default Description
count number <optional>
1

Defaults to 1

addResult(result)

Captures a result of a record being processed

Source:
Parameters:
Name Type Description
result Result

expectedFieldNames() → {Array.<string>}

Iterates across all the results to see all the expected field values

Source:
Returns:
Type:
Array.<string>

Return the list of expected field names