]> git.proxmox.com Git - pve-manager.git/commit
pvescheduler: make jobs tracking more flexible, rework stop
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Nov 2021 19:15:29 +0000 (20:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Nov 2021 19:15:30 +0000 (20:15 +0100)
commit427a5cb4290158f2c96695a7928aa3c8edf013ad
tree84b6c3e0e34d874ea26be19030b256d4920b1c47
parent7d546fb5fd76cd72173e6fa8a87abe6a570a470c
pvescheduler: make jobs tracking more flexible, rework stop

Avoid hard-coding the current implication of the replication stack to
not get started again until the old worker is done..

We still apply the same check, but changing that to let the jobs have
control is rather easy now.

Also rework the stop logic, send terminate to _all_ workers and make
the timeout a actual shared one (not first gets all, remaining get
kill) and send a kill to the stuck, leftover ones in one go at the
end, including some logging so that the admin can actually know about
this non-ideal situation.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Service/pvescheduler.pm