Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: increase request timeout #2826

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion react/src/pages/SessionLauncherPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ const SessionLauncherPage = () => {
sessionInfo.kernelName,
formattedSessionName,
sessionInfo.config,
20000,
30000,
sessionInfo.architecture,
)
.then((res: { created: boolean; status: string }) => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/backend-ai-folder-explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ export default class BackendAIFolderExplorer extends BackendAIPage {
environment,
null,
imageResource,
10000,
30000,
undefined,
);
})
Expand Down Expand Up @@ -1613,7 +1613,7 @@ export default class BackendAIFolderExplorer extends BackendAIPage {
environment,
`sftp-${this.vfolderID}`,
imageResource,
15000,
30000,
undefined,
);
if (sessionResponse.status === 'CANCELLED') {
Expand Down
2 changes: 1 addition & 1 deletion src/components/backend-ai-session-launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1989,7 +1989,7 @@ export default class BackendAiSessionLauncher extends BackendAIPage {
kernelName,
sessionName,
config,
20000,
30000,
architecture,
);
task
Expand Down
4 changes: 2 additions & 2 deletions src/lib/backend.ai-client-esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class Client {
this._features = {}; // feature support list
this.abortController = new AbortController();
this.abortSignal = this.abortController.signal;
this.requestTimeout = 15000;
this.requestTimeout = 30000;
if (localStorage.getItem('backendaiwebui.sessionid')) {
this._loginSessionId = localStorage.getItem('backendaiwebui.sessionid');
} else {
Expand Down Expand Up @@ -1015,7 +1015,7 @@ class Client {
kernelType: string,
sessionId: string,
resources = {},
timeout: number = 0,
timeout: number = 30000,
architecture: string = 'x86_64',
) {
if (
Expand Down
Loading