reference

Class: InMemoryJobStorage

job/storage.InMemoryJobStorage

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new InMemoryJobStorage()

Methods

setJob

setJob(jobId, state, results?, error?): Promise<void>

Parameters

NameType
jobIdstring
stateTaskState
results?unknown
error?Error

Returns

Promise<void>

Implementation of

JobStorage.setJob

Defined in

src/job/storage.ts:17


getJob

getJob(jobId): Promise<null | SerializedJob<unknown>>

Parameters

NameType
jobIdstring

Returns

Promise<null | SerializedJob<unknown>>

Implementation of

JobStorage.getJob

Defined in

src/job/storage.ts:21