aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/job/job-interface.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/job/job-interface.ts')
-rw-r--r--server/models/job/job-interface.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/models/job/job-interface.ts b/server/models/job/job-interface.ts
index ab6678257..31b377367 100644
--- a/server/models/job/job-interface.ts
+++ b/server/models/job/job-interface.ts
@@ -1,8 +1,10 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2 2
3import { JobState } from '../../../shared/models/job.model'
4
3export namespace JobMethods { 5export namespace JobMethods {
4 export type ListWithLimitCallback = (err: Error, jobInstances: JobInstance[]) => void 6 export type ListWithLimitCallback = (err: Error, jobInstances: JobInstance[]) => void
5 export type ListWithLimit = (limit: number, state: string, callback: ListWithLimitCallback) => void 7 export type ListWithLimit = (limit: number, state: JobState, callback: ListWithLimitCallback) => void
6} 8}
7 9
8export interface JobClass { 10export interface JobClass {
@@ -10,7 +12,7 @@ export interface JobClass {
10} 12}
11 13
12export interface JobAttributes { 14export interface JobAttributes {
13 state: string 15 state: JobState
14 handlerName: string 16 handlerName: string
15 handlerInputData: object 17 handlerInputData: object
16} 18}