]> git.proxmox.com Git - pve-manager.git/commit
pvescheduler: reworking child pid tracking
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 18 Nov 2021 13:28:30 +0000 (14:28 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Nov 2021 16:19:12 +0000 (17:19 +0100)
commit4af87395e919a54d272fb53d56cee11058f12662
treea7f1d4606c657b009c93ae07e85f42cda9fc1b9f
parentb8981dbd60b4e289ac166d62c0f1150102299ed4
pvescheduler: reworking child pid tracking

previously, systemd timers were responsible for running replication jobs.
those timers would not restart if the previous one is still running.

though trying again while it is running does no harm really, it spams
the log with errors about not being able to acquire the correct lock

to fix this, we rework the handling of child processes such that we only
start one per loop if there is currently none running. for that,
introduce the types of forks we do and allow one child process per type
(for now, we have 'jobs' and 'replication' as types)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/Service/pvescheduler.pm