From b2d31f075da7fa6853b32e6d1ab1b1e85feb896a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 2 Dec 2024 14:04:12 +0100 Subject: [PATCH] rest-server: increase task index lock timeout to 15s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this lock can be quite contended, until the surrounding code is properly split to reduce this contention it should help to give the worker task creation/cleanup code a bit more breathing room. Signed-off-by: Fabian Grünbichler --- proxmox-rest-server/src/worker_task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-rest-server/src/worker_task.rs b/proxmox-rest-server/src/worker_task.rs index bbf82ff9..beec691e 100644 --- a/proxmox-rest-server/src/worker_task.rs +++ b/proxmox-rest-server/src/worker_task.rs @@ -139,7 +139,7 @@ impl WorkerTaskSetup { .clone() .perm(nix::sys::stat::Mode::from_bits_truncate(0o660)); - let timeout = std::time::Duration::new(10, 0); + let timeout = std::time::Duration::new(15, 0); let file = proxmox_sys::fs::open_file_locked(&self.task_lock_fn, timeout, exclusive, options)?;