File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
backend/danswer/danswerbot/slack Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,6 @@ def validate_channel_name(
66
66
TENANT_HEARTBEAT_EXPIRATION = (
67
67
30 # How long before a tenant's heartbeat expires, allowing other pods to take over
68
68
)
69
- TENANT_ACQUISITION_INTERVAL = 60 # How often pods attempt to acquire unprocessed tenants and checks for new tokens
69
+ TENANT_ACQUISITION_INTERVAL = 15 # How often pods attempt to acquire unprocessed tenants and checks for new tokens
70
70
71
71
MAX_TENANTS_PER_POD = int (os .getenv ("MAX_TENANTS_PER_POD" , 50 ))
Original file line number Diff line number Diff line change @@ -197,7 +197,9 @@ def _manage_clients_per_tenant(
197
197
return
198
198
199
199
tokens_exist = tenant_bot_pair in self .slack_bot_tokens
200
- tokens_changed = slack_bot_tokens != self .slack_bot_tokens [tenant_bot_pair ]
200
+ tokens_changed = (
201
+ tokens_exist and slack_bot_tokens != self .slack_bot_tokens [tenant_bot_pair ]
202
+ )
201
203
if not tokens_exist or tokens_changed :
202
204
if tokens_exist :
203
205
logger .info (
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export const SlackTokensForm = ({
51
51
: "Successfully created Slack Bot!" ,
52
52
type : "success" ,
53
53
} ) ;
54
- router . push ( `/admin/bots/${ botId } }` ) ;
54
+ router . push ( `/admin/bots/${ encodeURIComponent ( botId ) } ` ) ;
55
55
} else {
56
56
const responseJson = await response . json ( ) ;
57
57
const errorMsg = responseJson . detail || responseJson . message ;
You can’t perform that action at this time.
0 commit comments