From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 0ED461FF0DF for ; Fri, 28 Aug 2026 17:51:27 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id D757E21589; Fri, 28 Aug 2026 17:51:26 +0200 (CEST) From: Jonas Theisen 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 Message-ID: <20260828155110.563237-2-j.theisen@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260828155110.563237-1-j.theisen@proxmox.com> References: <20260828155110.563237-1-j.theisen@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1787932273144 X-SPAM-LEVEL: Spam detection results: 1 AWL -1.692 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_DBL_SPAM 5 Contains a spam URL listed in the Spamhaus DBL blocklist [tasks.rs] Message-ID-Hash: UCGRNY4T55EPLU4JI4A3OCVLUUH4F3OG X-Message-ID-Hash: UCGRNY4T55EPLU4JI4A3OCVLUUH4F3OG X-MailFrom: j.theisen@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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