[pve-devel] [PATCH pve-guest-common] replication: delete job even if it is disabled

Hannes Laimer h.laimer at proxmox.com
Mon Apr 7 10:51:38 CEST 2025


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 <h.laimer at 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;
-- 
2.39.5





More information about the pve-devel mailing list