IPCFaçadeJob

IPCFaçadeJob

Listens for IPC status messages from subprocess and persists them in DB

Constructor

new IPCFaçadeJob(job, getResourceFaçade)

Source:

Constructor

Parameters:
Name Type Description
job Job

job

getResourceFaçade function

function to get resource

Methods

_abort(error)

Source:

Abort the job

Parameters:
Name Type Description
error Error

error with which to abort

_run() → {Promise}

Source:

Run the job

Returns:

promise

Type
Promise

createResource() → {object}

Source:

Create resource

Returns:

resource

Type
object

releaseResource(resource) → {Promise}

Source:

Release resource

Parameters:
Name Type Description
resource object

to release

Returns:

promise

Type
Promise

resourceName() → {string}

Source:

Get resource name

Returns:

resource name

Type
string

retryPolicy() → {RetryPolicy}

Source:

Get retry policy

Returns:

retry policy

Type
RetryPolicy