diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-21 16:57:21 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-25 14:38:52 +0100 |
commit | 77d7e851dccf17dcc89e8fcc2db3f655d1e63f95 (patch) | |
tree | d09e045dfabe7ab1e170d1b0caa9decda8a7d39c /client/src/app/+admin/system/jobs/jobs.component.ts | |
parent | 92c871b40554d5285232eb4392cebb63d127704a (diff) | |
download | PeerTube-77d7e851dccf17dcc89e8fcc2db3f655d1e63f95.tar.gz PeerTube-77d7e851dccf17dcc89e8fcc2db3f655d1e63f95.tar.zst PeerTube-77d7e851dccf17dcc89e8fcc2db3f655d1e63f95.zip |
Add priority to transcoding jobs
(1 = highest priority)
100 for new resolutions
10 for original file optimization
Add a malus for transcoding jobs depending on how many uploads the user did in the
last 7 days
Diffstat (limited to 'client/src/app/+admin/system/jobs/jobs.component.ts')
-rw-r--r-- | client/src/app/+admin/system/jobs/jobs.component.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/+admin/system/jobs/jobs.component.ts b/client/src/app/+admin/system/jobs/jobs.component.ts index 5355d2c20..d08079f7e 100644 --- a/client/src/app/+admin/system/jobs/jobs.component.ts +++ b/client/src/app/+admin/system/jobs/jobs.component.ts | |||
@@ -21,19 +21,19 @@ export class JobsComponent extends RestTable implements OnInit { | |||
21 | 21 | ||
22 | jobType: JobTypeClient = 'all' | 22 | jobType: JobTypeClient = 'all' |
23 | jobTypes: JobTypeClient[] = [ | 23 | jobTypes: JobTypeClient[] = [ |
24 | 'all', | ||
25 | 'activitypub-follow', | 24 | 'activitypub-follow', |
26 | 'activitypub-http-broadcast', | 25 | 'activitypub-http-broadcast', |
27 | 'activitypub-http-fetcher', | 26 | 'activitypub-http-fetcher', |
28 | 'activitypub-http-unicast', | 27 | 'activitypub-http-unicast', |
28 | 'activitypub-refresher', | ||
29 | 'all', | ||
29 | 'email', | 30 | 'email', |
30 | 'video-transcoding', | ||
31 | 'video-file-import', | 31 | 'video-file-import', |
32 | 'video-import', | 32 | 'video-import', |
33 | 'videos-views', | 33 | 'video-live-ending', |
34 | 'activitypub-refresher', | ||
35 | 'video-redundancy', | 34 | 'video-redundancy', |
36 | 'video-live-ending' | 35 | 'video-transcoding', |
36 | 'videos-views' | ||
37 | ] | 37 | ] |
38 | 38 | ||
39 | jobs: Job[] = [] | 39 | jobs: Job[] = [] |
@@ -75,7 +75,7 @@ export class JobsComponent extends RestTable implements OnInit { | |||
75 | getColspan () { | 75 | getColspan () { |
76 | if (this.jobState === 'all' && this.hasProgress()) return 6 | 76 | if (this.jobState === 'all' && this.hasProgress()) return 6 |
77 | 77 | ||
78 | if (this.jobState === 'all') return 5 | 78 | if (this.jobState === 'all' || this.hasProgress()) return 5 |
79 | 79 | ||
80 | return 4 | 80 | return 4 |
81 | } | 81 | } |