From ddfc7f14ecec33563abd6eb2938bc79545287dfc Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 24 Mar 2024 17:28:15 +0100 Subject: [PATCH] improve vacuum queue --- backend/windmill-worker/src/worker.rs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/backend/windmill-worker/src/worker.rs b/backend/windmill-worker/src/worker.rs index 547aa7c411..a34f5de616 100644 --- a/backend/windmill-worker/src/worker.rs +++ b/backend/windmill-worker/src/worker.rs @@ -212,7 +212,7 @@ pub const DEFAULT_SLEEP_QUEUE: u64 = 50; // only 1 native job so that we don't have to worry about concurrency issues on non dedicated native jobs workers pub const DEFAULT_NATIVE_JOBS: usize = 1; -const VACUUM_PERIOD: u32 = 10000; +const VACUUM_PERIOD: u32 = 50000; pub const MAX_BUFFERED_DEDICATED_JOBS: usize = 3; @@ -1384,23 +1384,14 @@ pub async fn run_worker