]> git.proxmox.com Git - pve-manager.git/commit
fix #4111: replication: don't send mail when fail count is zero
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 14 Jun 2022 09:47:32 +0000 (11:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Jun 2022 15:20:06 +0000 (17:20 +0200)
commitb70458b6dd68a98adf3be124092059f8088764c8
tree1822a02b9e4fa3ea7e47787430f155213bf5e86a
parent61a687ac13402a028fa9bf31389537bca23cc2a0
fix #4111: replication: don't send mail when fail count is zero

which can happen when failing to obtain the guest's migration lock.
This led to a lot of mails being sent during migration (timeout for
obtaining lock is only 2 seconds and we run it in a loop).

One could argue that obtaining the lock should increase the fail
count, but without the lock, the job state should not be touched and
even the first three mails upon migration could be considered spam.

Fixes: fa4bb659 ("replication: sent always mail for first three tries and move helper")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Replication.pm