From 1fc5630c7146c0b12358ccbb165dcf0a15530668 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 21 Feb 2025 16:06:30 +0100 Subject: [PATCH] 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 --- 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, #[serde(skip_serializing_if = "Option::is_none", default)] pub max_depth: Option, + /// Set the number of worker threads to use for the job + #[serde(skip_serializing_if = "Option::is_none")] + pub worker_threads: Option, } #[api(