From de2ddf940a3af599f1fb1ff20e6564ab98bc66bd Mon Sep 17 00:00:00 2001 From: Hannes Laimer Date: Mon, 7 Apr 2025 10:51:38 +0200 Subject: [PATCH] replication: delete job even if it is disabled Currently we skip all disabled jobs, also the ones up for deletion, which does not make sense. This came up in support. Signed-off-by: Hannes Laimer Link: https://lore.proxmox.com/20250407085138.4653-1-h.laimer@proxmox.com --- src/PVE/ReplicationState.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/ReplicationState.pm b/src/PVE/ReplicationState.pm index 16b3d90..e91b6fc 100644 --- a/src/PVE/ReplicationState.pm +++ b/src/PVE/ReplicationState.pm @@ -272,7 +272,7 @@ sub job_status { # never sync to local node next if !$jobcfg->{remove_job} && $target eq $local_node; - next if !$get_disabled && $jobcfg->{disable}; + next if !$jobcfg->{remove_job} && !$get_disabled && $jobcfg->{disable}; my $state = extract_job_state($stateobj, $jobcfg); $jobcfg->{state} = $state;