mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Allow to specify transcoding and import jobs concurrency
This commit is contained in:
parent
81b46cbc34
commit
9129b7694d
22 changed files with 133 additions and 33 deletions
|
@ -65,6 +65,14 @@ export const TRANSCODING_THREADS_VALIDATOR: BuildFormValidator = {
|
|||
}
|
||||
}
|
||||
|
||||
export const CONCURRENCY_VALIDATOR: BuildFormValidator = {
|
||||
VALIDATORS: [Validators.required, Validators.min(1)],
|
||||
MESSAGES: {
|
||||
'required': $localize`Concurrency is required.`,
|
||||
'min': $localize`Concurrency should be greater or equal to 1.`
|
||||
}
|
||||
}
|
||||
|
||||
export const INDEX_URL_VALIDATOR: BuildFormValidator = {
|
||||
VALIDATORS: [Validators.pattern(/^https:\/\//)],
|
||||
MESSAGES: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue