From ce8d56a3b50411cd0ba4ec7547abe545566baf26 Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Mon, 27 Jan 2025 14:38:26 +0100 Subject: [PATCH] api: datastore: add missing log context for prune Adds the missing log context for cases were a prune is not executed as dedicated tokio task. Commit 432de66a ("api: make prune-group a real workertask") moved the prune group logic into it's own tokio task conditionally. However, the log context was missing for cases where no dedicated task/thread is started, leading to the worker task state being unknown after finish, as no logs are written to the worker task log file. Reported in the community forum: https://forum.proxmox.com/threads/161273/ Signed-off-by: Christian Ebner Reviewed-by: Gabriel Goller