jobStatusService

jobStatusService

new jobStatusService()

The jobStatusService allows for periodic loading of the status of jobs that comes from the clusters.

A Promise with the data is returned, which is then set properly within the controller

Source:

Methods

(static) addJobToDb(clusterInterface, Job)

Adds job to submitted DB

Source:
Parameters:
Name Type Description
clusterInterface Object

Used to grab job attributes

Job Object

Job information to add to DB

(static) refreshDatabase(clusterInterface, clusterId, force) → {Promise}

Makes asynchronous calls to check for job statuses within the database

Source:
Parameters:
Name Type Description
clusterInterface GenericClusterInterface

Used to grab uncompleted jobs from the cluster

clusterId integer

Unique ID of the cluster for querying the database

force boolean

Flag denoting if the user wants to force update the database

Returns:
Type:
Promise

Promise object to be resolved in the controller