Re: [PATCH proxmox-backup v8 03/10] tools: add bounded join set to run concurrent tasks bound by limit

Thomas Lamprecht
2026-04-22T20:20:00Z

Am 22.04.26 um 19:31 schrieb Thomas Lamprecht:
>> diff --git a/pbs-tools/src/bounded_join_set.rs b/pbs-tools/src/bounded_join_set.rs
>> new file mode 100644
>> index 000000000..07500c66b
>> --- /dev/null
>> +++ b/pbs-tools/src/bounded_join_set.rs
>> @@ -0,0 +1,81 @@
>> +//! JoinSet with an upper bound of concurrent tasks.
>> +//!
>> +//! Allows to run up to the configured number of tasks concurrently in an async
>> +//! context.
>
> similar to my reply to the buffered log module: Might be nicer if this lives
> in the proxmox rust workspace, and in fact Lukas factored out the
> parallel-handler recently into its own crate, depending on the semantic and
> dependency overlap this might also go into the newish proxmox-parallel-handler
> crate or its own nano crate.
>
> But fine for now to be here, no need for another revision.
>
On a second thought, if we move this into an existing crate it might be a
better fit for proxmox-async or really it's on nano-crate, but we can
really omit this until actually needed, it's a minimal wrapper after all.