[pbs-devel] [PATCH proxmox v3 1/1] pbs api types: tape backup job: add worker threads option
Dominik Csapak
d.csapak at proxmox.com
Fri Feb 21 16:06:30 CET 2025
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 at proxmox.com>
---
pbs-api-types/src/jobs.rs | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs
index 04631d92..d0b94a24 100644
--- a/pbs-api-types/src/jobs.rs
+++ b/pbs-api-types/src/jobs.rs
@@ -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(
--
2.39.5
More information about the pbs-devel
mailing list