[pve-devel] [PATCH pve-manager] PVE/API2/Replication.pm: call purge_old_states in run_jobs
Dietmar Maurer
dietmar at proxmox.com
Tue Jun 27 11:03:06 CEST 2017
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
PVE/API2/Replication.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm
index ddfc2d0e..997d1cd3 100644
--- a/PVE/API2/Replication.pm
+++ b/PVE/API2/Replication.pm
@@ -81,6 +81,8 @@ sub run_jobs {
my $code = sub {
my $start_time = $now // time();
+ PVE::ReplicationState::purge_old_states();
+
while (my $jobcfg = PVE::ReplicationState::get_next_job($iteration, $start_time)) {
my $guest_class = $lookup_guest_class->($jobcfg->{vmtype});
PVE::Replication::run_replication($guest_class, $jobcfg, $iteration, $start_time, $logfunc, 1, $verbose);
--
2.11.0
More information about the pve-devel
mailing list