Skip to content

Commit 904ea78

Browse files
authored
Return executor method so that it can be awaited properly in async client (#2093)
1 parent 295014a commit 904ea78

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

weaviate/collections/tenants/executor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def activate(
521521
weaviate.exceptions.UnexpectedStatusCodeError: If Weaviate reports a non-OK status.
522522
weaviate.exceptions.WeaviateInvalidInputError: If `tenant` is not a list of `wvc.Tenant` objects.
523523
"""
524-
self.__update_tenant_activity_status(
524+
return self.__update_tenant_activity_status(
525525
tenant=tenant,
526526
activity_status=TenantUpdateActivityStatus.ACTIVE,
527527
)
@@ -542,7 +542,7 @@ def deactivate(
542542
weaviate.exceptions.UnexpectedStatusCodeError: If Weaviate reports a non-OK status.
543543
weaviate.exceptions.WeaviateInvalidInputError: If `tenant` is not a list of `wvc.Tenant` objects.
544544
"""
545-
self.__update_tenant_activity_status(
545+
return self.__update_tenant_activity_status(
546546
tenant=tenant,
547547
activity_status=TenantUpdateActivityStatus.INACTIVE,
548548
)
@@ -563,7 +563,7 @@ def offload(
563563
weaviate.exceptions.UnexpectedStatusCodeError: If Weaviate reports a non-OK status.
564564
weaviate.exceptions.WeaviateInvalidInputError: If `tenant` is not a list of `wvc.Tenant` objects.
565565
"""
566-
self.__update_tenant_activity_status(
566+
return self.__update_tenant_activity_status(
567567
tenant=tenant,
568568
activity_status=TenantUpdateActivityStatus.OFFLOADED,
569569
)

0 commit comments

Comments
 (0)