this patch series reworks the stop logic for task workers: - the first stop attempt triggers a kill -15 and sets a stoptime in the active task list - the second and subsequent stop attempts trigger a kill -15, followed by a kill -9 after a 10 second waiting period
this allows worker cleanup code to finish, unless the worker is explicitly stopped a second time. note: this requires the stoptime patch for pve-common note: since we now don't kill -9 automatically after 5 seconds, it might make sense to cleanup workers that should have stopped a long time ago but are still running.. Fabian Grünbichler (4): make sure to kill correct process (group) allow setting stoptime via active_workers add force option to kill_process_group increase kill -9 wait to 10 seconds PVE/RPCEnvironment.pm | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) -- 2.1.4 _______________________________________________ pve-devel mailing list [email protected] http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
