mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 00:01:49 +00:00
backend: keep tracking minimal worker version (#4786)
Be sure to also track the min version of workers that have been started after the min version variable has been set. e.g. All workers are up to date and `MIN_VERSION_IS_AT_LEAST_1_427` is set to true, a worker is then powered on with an anterior version, leading to a false positive value. This commit fix that.
This commit is contained in:
@@ -592,9 +592,7 @@ pub async fn update_min_version<'c, E: sqlx::Executor<'c, Database = sqlx::Postg
|
||||
tracing::info!("Minimal worker version: {min_version}");
|
||||
}
|
||||
|
||||
if min_version >= Version::new(1, 427, 0) {
|
||||
*MIN_VERSION_IS_AT_LEAST_1_427.write().await = true;
|
||||
}
|
||||
*MIN_VERSION_IS_AT_LEAST_1_427.write().await = min_version >= Version::new(1, 427, 0);
|
||||
|
||||
*MIN_VERSION.write().await = min_version.clone();
|
||||
min_version >= cur_version
|
||||
|
||||
Reference in New Issue
Block a user