File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
backend/onyx/onyxbot/slack Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -264,23 +264,23 @@ def acquire_tenants(self) -> None:
264
264
- If a tenant in self.tenant_ids no longer has Slack bots, remove it (and release the lock in this scope).
265
265
"""
266
266
267
+ token : Token [str | None ]
268
+
267
269
# tenants that are disabled (e.g. their trial is over and haven't subscribed)
268
270
# for non-cloud, this will return an empty set
269
271
gated_tenants = fetch_ee_implementation_or_noop (
270
272
"onyx.server.tenants.product_gating" ,
271
273
"get_gated_tenants" ,
272
274
set (),
273
275
)()
274
- all_tenants = [
276
+ all_active_tenants = [
275
277
tenant_id
276
278
for tenant_id in get_all_tenant_ids ()
277
279
if tenant_id not in gated_tenants
278
280
]
279
281
280
- token : Token [str | None ]
281
-
282
282
# 1) Try to acquire locks for new tenants
283
- for tenant_id in all_tenants :
283
+ for tenant_id in all_active_tenants :
284
284
if (
285
285
DISALLOWED_SLACK_BOT_TENANT_LIST is not None
286
286
and tenant_id in DISALLOWED_SLACK_BOT_TENANT_LIST
You can’t perform that action at this time.
0 commit comments