diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-30 10:51:13 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-30 10:55:06 +0100 |
commit | 5cd80545422bba855cc9a730a2e13cc9d982c34b (patch) | |
tree | 9a60cd7c9218c296a1460938d11e3bce784f7cc0 /shared/models/job.model.ts | |
parent | 1f3e9feca2caf68024168b0ea9ed39d8438fa235 (diff) | |
download | PeerTube-5cd80545422bba855cc9a730a2e13cc9d982c34b.tar.gz PeerTube-5cd80545422bba855cc9a730a2e13cc9d982c34b.tar.zst PeerTube-5cd80545422bba855cc9a730a2e13cc9d982c34b.zip |
Add ability to list jobs
Diffstat (limited to 'shared/models/job.model.ts')
-rw-r--r-- | shared/models/job.model.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shared/models/job.model.ts b/shared/models/job.model.ts index 10696e3f8..1c46a7900 100644 --- a/shared/models/job.model.ts +++ b/shared/models/job.model.ts | |||
@@ -1,2 +1,12 @@ | |||
1 | export type JobState = 'pending' | 'processing' | 'error' | 'success' | 1 | export type JobState = 'pending' | 'processing' | 'error' | 'success' |
2 | export type JobCategory = 'transcoding' | 'activitypub-http' | 2 | export type JobCategory = 'transcoding' | 'activitypub-http' |
3 | |||
4 | export interface Job { | ||
5 | id: number | ||
6 | state: JobState | ||
7 | category: JobCategory | ||
8 | handlerName: string | ||
9 | handlerInputData: any | ||
10 | createdAt: Date | ||
11 | updatedAt: Date | ||
12 | } | ||