Skip to content

Commit 5d21a74

Browse files
committed
add sensible slack retry config
1 parent 9e02d0a commit 5d21a74

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

apps/webapp/app/models/orgIntegration.server.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,15 @@ export class OrgIntegrationRepository {
6969
return new WebClient(
7070
options?.forceBotToken
7171
? secret.botAccessToken
72-
: secret.userAccessToken ?? secret.botAccessToken
72+
: secret.userAccessToken ?? secret.botAccessToken,
73+
{
74+
retryConfig: {
75+
retries: 2,
76+
randomize: true,
77+
maxTimeout: 5000,
78+
maxRetryTime: 10000,
79+
},
80+
}
7381
) as AuthenticatedClientForIntegration<TService>;
7482
}
7583
default: {

0 commit comments

Comments
 (0)