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
Name | Type |
---|---|
jobId | string |
state | TaskState |
results? | unknown |
error? | Error |
Returns
Promise
<void
>
Implementation of
Defined in
getJob
▸ getJob(jobId
): Promise
<null
| SerializedJob
<unknown
>>
Parameters
Name | Type |
---|---|
jobId | string |
Returns
Promise
<null
| SerializedJob
<unknown
>>