JobStore
JobStore /
maps typescript to native functions
Hierarchy
- JobStore
Implemented by
Index
Methods
- addJob
- deleteAllJobs
- getActiveMarkedJobs
- getJobs
- getJobsForWorker
- getNextJob
- removeJob
- removeJobsByWorkerName
- updateJob
Methods
addJob
▸ addJob(job
: RawJob): Promise<void>
Defined in models/JobStore.ts:7
Parameters:
Name | Type |
---|---|
job | RawJob |
Returns: Promise<void>
deleteAllJobs
▸ deleteAllJobs(): Promise<void>
Defined in models/JobStore.ts:15
Returns: Promise<void>
getActiveMarkedJobs
▸ getActiveMarkedJobs(): Promise<RawJob[]>
Defined in models/JobStore.ts:9
Returns: Promise<RawJob[]>
getJobs
▸ getJobs(): Promise<RawJob[]>
Defined in models/JobStore.ts:8
Returns: Promise<RawJob[]>
getJobsForWorker
▸ getJobsForWorker(name
: string, count
: number): Promise<RawJob[]>
Defined in models/JobStore.ts:11
Parameters:
Name | Type |
---|---|
name | string |
count | number |
Returns: Promise<RawJob[]>
getNextJob
▸ getNextJob(): Promise<RawJob>
Defined in models/JobStore.ts:10
Returns: Promise<RawJob>
removeJob
▸ removeJob(job
: RawJob): void
Defined in models/JobStore.ts:13
Parameters:
Name | Type |
---|---|
job | RawJob |
Returns: void
removeJobsByWorkerName
▸ removeJobsByWorkerName(workerName
: string): void
Defined in models/JobStore.ts:14
Parameters:
Name | Type |
---|---|
workerName | string |
Returns: void
updateJob
▸ updateJob(job
: RawJob): void
Defined in models/JobStore.ts:12
Parameters:
Name | Type |
---|---|
job | RawJob |
Returns: void