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(