[pbs-devel] [PATCH proxmox v3 3/3] pbs-api-types: use worker-threads schema for TapeBackupJobSetup

Christian Ebner c.ebner at proxmox.com
Tue Nov 11 11:22:10 CET 2025


Reviewed-by: Christian Ebner <c.ebner at proxmox.com>

On 11/10/25 9:44 AM, Nicolas Frey wrote:
> use new worker-threads schema
> 
> Signed-off-by: Nicolas Frey <n.frey at proxmox.com>
> ---
>   pbs-api-types/src/jobs.rs | 6 +-----
>   1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs
> index 2b9cef38..ba2af6d7 100644
> --- a/pbs-api-types/src/jobs.rs
> +++ b/pbs-api-types/src/jobs.rs
> @@ -321,11 +321,8 @@ pub struct VerificationJobStatus {
>               optional: true,
>           },
>           "worker-threads": {
> -            type: Integer,
> +            schema: crate::WORKER_THREADS_SCHEMA,
>               optional: true,
> -            minimum: 1,
> -            maximum: 32,
> -            default: 1,
>           },
>       }
>   )]
> @@ -353,7 +350,6 @@ 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>,
>   }





More information about the pbs-devel mailing list