Line

You are reading docs for v0.8. See latest (v0.9)

ui/server/src/reviewJobs-1

Cockpit server, v0.8. Source: n/a.

Functions#

createReviewJobs()#

createReviewJobs(deps): object

Defined in: ui/server/src/reviewJobs.mjs:14

Parameters#

deps

see createAnalyses()

analyses

{ cancel: Function; start: Function; stateOf: Function; }

analyses.cancel

Function

analyses.start

Function

analyses.stateOf

Function

Returns#

get

get: (job) => any

The current state ({state, processId?, result?, error?}), or {state:'none'}.

Parameters
job

any

Returns

any

cancel()

cancel(job): any

Cancel the live analysis of this comparison with the machine's own CANCEL. -> {status, body} | null when none is live.

Parameters
job

any

Returns

any

enqueue()

enqueue(job): any

Start the analysis unless one for the same comparison is live or finished. Returns its state.

Parameters
job

any

Returns

any

pending()

pending(): number

How many analyses are waiting or running (tests and status).

Returns

number