This commit is contained in:
Ruben Fiszel
2023-09-25 16:33:21 +02:00
parent 6c19740718
commit 9ae2567534
3 changed files with 7 additions and 12 deletions
+6 -9
View File
@@ -78,15 +78,12 @@ pub async fn reload_custom_tags_setting(db: &DB) -> error::Result<()> {
let custom_tags = process_custom_tags(tags);
{
let l = CUSTOM_TAGS_PER_WORKSPACE.read().await;
if l.clone() == custom_tags {
tracing::info!("Custom tags setting unchanged, skipping update");
return Ok(());
} else {
tracing::info!("Custom tags setting changed, updating");
}
}
tracing::info!(
"Loaded setting custom tags, common: {:?}, per-workspace: {:?}",
custom_tags.0,
custom_tags.1,
);
{
let mut l = CUSTOM_TAGS_PER_WORKSPACE.write().await;
*l = custom_tags.clone()
-2
View File
@@ -562,8 +562,6 @@ pub async fn run_worker<R: rsmq_async::RsmqConnection + Send + Sync + Clone + 's
#[cfg(feature = "enterprise")]
let mut copy_cache_from_bucket_handle: Option<tokio::task::JoinHandle<()>> = None;
tracing::info!(worker = %worker_name, "starting worker");
#[cfg(feature = "enterprise")]
let mut last_sync = Instant::now()
+ Duration::from_secs(rand::thread_rng().gen_range(0..*GLOBAL_CACHE_INTERVAL));
+1 -1
View File
@@ -22,7 +22,7 @@
<span class="text-blue-400"
>{uptodate} &nbsp;<Tooltip>
How to update?<br />
- docker: `docker compose up`<br />-
- docker: `docker compose up -d`<br />-
<a href="https://github.com/windmill-labs/windmill-helm-charts#install">helm</a>
</Tooltip>
</span>