From 5e6cf55bc5225744e69790c01ccf01832135bffb Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 15 Feb 2023 11:27:53 +0100 Subject: [PATCH] fix ee --- backend/windmill-worker/src/worker.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/windmill-worker/src/worker.rs b/backend/windmill-worker/src/worker.rs index 56f781575f..b240299cc6 100644 --- a/backend/windmill-worker/src/worker.rs +++ b/backend/windmill-worker/src/worker.rs @@ -506,7 +506,7 @@ pub async fn run_worker( WORKER_STARTED.inc(); #[cfg(feature = "enterprise")] - if let Some(ref s) = sync_bucket.clone() { + if let Some(ref s) = S3_CACHE_BUCKET.clone() { // We try to download the entire cache as a tar, it is much faster over S3 if !copy_cache_from_bucket_as_tar(&s).await { // We revert to copying the cache from the bucket @@ -547,10 +547,10 @@ pub async fn run_worker( #[cfg(feature = "enterprise")] if last_sync.elapsed().as_secs() > NUM_SECS_SYNC { - if let Some(ref s) = sync_bucket.clone() { + if let Some(ref s) = S3_CACHE_BUCKET.clone() { copy_cache_from_bucket(&s).await; copy_cache_to_bucket(&s).await; - if rand::thread_rng().gen_range(0..tar_cache_rate) == 1 { + if rand::thread_rng().gen_range(0..*TAR_CACHE_RATE) == 1 { copy_cache_to_bucket_as_tar(&s).await; } }