From: Jonas Theisen <j.theisen@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager 1/2] api: Remove running tasks from errors output
Date: Fri, 28 Aug 2026 17:49:35 +0200 [thread overview]
Message-ID: <20260828155110.563237-2-j.theisen@proxmox.com> (raw)
In-Reply-To: <20260828155110.563237-1-j.theisen@proxmox.com>
Currently running tasks are returned by the PDM API in the query
for errored tasks.
This patch adds an additional condition to filter out running tasks
when queried for errored tasks
This is related to the patch suggested for the PBS API at
https://lore.proxmox.com/pbs-devel/20260827154740.427154-1-j.theisen@proxmox.com/
Signed-off-by: Jonas Theisen <j.theisen@proxmox.com>
---
server/src/api/nodes/tasks.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/server/src/api/nodes/tasks.rs b/server/src/api/nodes/tasks.rs
index 31ddb8f1..1cca3c0a 100644
--- a/server/src/api/nodes/tasks.rs
+++ b/server/src/api/nodes/tasks.rs
@@ -155,6 +155,7 @@ pub fn list_tasks(
continue;
}
}
+ (None, _) if errors => continue,
(None, Some(_)) => continue,
_ => {}
}
--
2.47.3
next prev parent reply other threads:[~2026-08-28 15:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 15:49 SPAM: [PATCH datacenter-manager 0/2] Remove running tasks from Jonas Theisen
2026-08-28 15:49 ` Jonas Theisen [this message]
2026-08-28 15:49 ` [PATCH datacenter-manager 2/2] remote-tasks: Align fetched PVE tasks to PBS and PDM API Jonas Theisen
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=20260828155110.563237-2-j.theisen@proxmox.com \
--to=j.theisen@proxmox.com \
--cc=pdm-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