032: add aclose() to SupersetClient (was missing, used in dashboard detail routes)

SupersetClientBase was missing aclose() method. AsyncSupersetClient had it
via override, but code creating SupersetClient directly (e.g. dashboard tasks
history route) would fail with AttributeError on await client.aclose().
This commit is contained in:
2026-06-05 08:33:49 +03:00
parent 5eb116509b
commit 079b2dd37b

View File

@@ -272,5 +272,12 @@ class SupersetClientBase:
)
return data
# #endregion SupersetClientGetAllResources
# #region aclose [TYPE Function]
# @PURPOSE Close async HTTP transport.
# @POST Underlying AsyncAPIClient session is closed.
async def aclose(self) -> None:
await self.client.aclose()
# #endregion aclose
# #endregion SupersetClientBase
# #endregion SupersetClientBase