[pbs-devel] [PATCH v5 proxmox 2/8] pbs api types: add option to set GC chunk cleanup atime cutoff
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Mar 19 10:01:53 CET 2025
Am 19.03.25 um 09:48 schrieb Christian Ebner:
> Given this I did check also the output in the docs, which however shows
> the very unintuitive integer rage and default value.
>
> So given that, maybe it would be better to switch from an integer schema
> to a string schema and parse the values as HumanTime?
> Similar to what is done for the GC schedule.
That might indeed have some benefits UX wise, albeit I'm not 100% sure how
good this is in the web UI, or is there a pre-existing use case for
HumanTime in the UI and thus ideally have already a nice validator there to
provide quicker feedback to users if they enter something bogus.
As the GC schedule is a calendar event, i.e. time instants not really time
durations like HumanTime is, e.g. `daily` or `hourly`, which calendar event
support would not make that much sense here.
That said, while I have some slight reservations those probably could be
resolved with some frontend validation, and it probably would not get
worse than plain minutes, albeit I'd expect that most people either will
reduce this to the minimum of 1 to ensure GC collects chunks without
references much faster or leave it as is, so not sure how much hassle
this is worth it, at least for this specific duration setting.
More information about the pbs-devel
mailing list