From: Christian Ebner <c.ebner@proxmox.com>
To: Jonas Theisen <j.theisen@proxmox.com>, pbs-devel@lists.proxmox.com
Subject: Re: [PATCH proxmox-backup] api: gc status: pass schedule instead of UPID to schedule helper
Date: Tue, 27 Oct 2026 11:31:33 +0100 [thread overview]
Message-ID: <bf2a12b0-b1e9-4dd6-8345-5defe91723a0@proxmox.com> (raw)
In-Reply-To: <20261022161612.331793-1-j.theisen@proxmox.com>
On 10/22/26 6:16 PM, Jonas Theisen wrote:
> Since the GC job status was introduced and then refactored in [1]
> the last GC run's UPID has been passed as the schedule argument
> of compute_schedule_status().
> A UPID never parses as a calendar event, so the computed next run
> was always None, and it was then recomputed from the GC schedule
> in a separate step after the fact.
>
> Pass the configured GC schedule instead and use the helper's result
> directly. This drops the duplicated computation, and the next run
> of GC jobs is now derived from the job state file in the same way as
> for sync, verify, prune and tape backup jobs. Previously, the base
> was the last run's end time from the in-memory GC status, or the
> current time if there was none, which ignored the job state that
> the proxy's scheduler relies on.
>
> [1] https://lore.proxmox.com/pbs-devel/20260319110318.70346-2-m.koeppl@proxmox.com/
>
> Signed-off-by: Jonas Theisen <j.theisen@proxmox.com>
Thanks for this cleanup!
Changes fix the incorrect upid passing and duplicate job state
loading/computation when the datastore instance has an in-memory status.
They do however also change the error logging behavior on calendar event
parsing and next runtime calculation, which are now silently ignored.
This is however in line with the rest of the job types, so acceptable IMO.
Tested that this does not lead to changed behaviour when the .gc-status
is not present yet and that `/admin/datastore/{store}/gc` and
`/admin/gc` still return consistent information.
Reviewed-by: Christian Ebner <c.ebner@proxmox.com>
Tested-by: Christian Ebner <c.ebner@proxmox.com>
prev parent reply other threads:[~2026-10-27 10:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 16:15 [PATCH proxmox-backup] api: gc status: pass schedule instead of UPID to schedule helper Jonas Theisen
2026-10-27 10:31 ` Christian Ebner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bf2a12b0-b1e9-4dd6-8345-5defe91723a0@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=j.theisen@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox