proxmox/proxmox-rest-server
Fabian Grünbichler 4e51ac3527 rest-server: handle failure in worker task setup correctly
if setting up a new worker fails after it has been inserted into the
WORKER_TASK_LIST, we need to clean it up instead of bubbling up the error right
away, else we "leak" the worker task and it never finishes..

a worker task that never finishes will indefinitely block shutdown
of the rest server process, including the "old" process when reloading
the rest server.

this issue was found in the wild on a system with lock contention on the
file-based lock covering task index updating leading to lock acquiring
timeouts.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-12-02 16:54:18 +01:00
..
debian workspace: update proxmox-http-client to 0.9.4 2024-11-26 14:37:43 +01:00
examples rest-server: remove lazy_static dependency 2024-08-14 10:33:42 +02:00
src rest-server: handle failure in worker task setup correctly 2024-12-02 16:54:18 +01:00
Cargo.toml rest-server: bump version to 0.8.4-1 2024-11-25 17:16:16 +01:00