minor worker tags nit

This commit is contained in:
Ruben Fiszel
2023-04-26 01:54:09 +02:00
parent 63b886d3a5
commit d93b85c724
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -162,6 +162,8 @@ Windmill Community Edition {GIT_VERSION}
"INSTANCE_EVENTS_WEBHOOK",
"CLOUD_HOSTED",
"GLOBAL_CACHE_INTERVAL",
"WORKER_TAGS",
"CUSTOM_TAGS",
]);
if server_mode || num_workers > 0 {
+1 -1
View File
@@ -49,7 +49,7 @@ use windmill_queue::{self, schedule::push_scheduled_job, QueueTransaction};
lazy_static::lazy_static! {
pub static ref CUSTOM_TAGS: Vec<String> = std::env::var("CUSTOM_TAGS")
.ok()
.map(|x| x.split(',').map(|x| x.to_string()).collect::<Vec<_>>()).unwrap_or_default();
.map(|x| x.split(',').map(|x| x.to_string()).filter(|x| !x.is_empty()).collect::<Vec<_>>()).unwrap_or_default();
}