refactor: is_upgrade_extension

This commit is contained in:
Vlad Stan
2026-07-09 16:36:10 +03:00
parent ba4700b803
commit ec1a9ac2f4
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -178,6 +178,8 @@ class Extension(BaseModel):
@property
def is_upgrade_extension(self) -> bool:
if self.extension_type == "wasm":
return False
return self.upgrade_hash != ""
@classmethod
+1 -1
View File
@@ -71,7 +71,7 @@ async def install_extension(
await update_installed_extension(ext_info)
extension = Extension.from_installable_ext(ext_info)
if extension.is_upgrade_extension and not extension.is_wasm:
if extension.is_upgrade_extension:
# call stop while the old routes are still active
await stop_extension_background_work(ext_info.id)