mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-29 15:16:22 +00:00
pbs api types: tape backup job: add worker threads option
Sometimes it's useful to give the user control over how much parallelized the job is, so introduce a worker thread option. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
4097d3697d
commit
1fc5630c71
@ -306,6 +306,13 @@ pub struct VerificationJobStatus {
|
||||
schema: crate::NS_MAX_DEPTH_SCHEMA,
|
||||
optional: true,
|
||||
},
|
||||
"worker-threads": {
|
||||
type: Integer,
|
||||
optional: true,
|
||||
minimum: 1,
|
||||
maximum: 32,
|
||||
default: 1,
|
||||
},
|
||||
}
|
||||
)]
|
||||
#[derive(Serialize, Deserialize, Clone, Updater, PartialEq)]
|
||||
@ -332,6 +339,9 @@ pub struct TapeBackupJobSetup {
|
||||
pub ns: Option<BackupNamespace>,
|
||||
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||
pub max_depth: Option<usize>,
|
||||
/// Set the number of worker threads to use for the job
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub worker_threads: Option<u64>,
|
||||
}
|
||||
|
||||
#[api(
|
||||
|
Loading…
Reference in New Issue
Block a user