Skip to content

Commit

Permalink
increase the axios request timeout (#999)
Browse files Browse the repository at this point in the history
Increase the timeout in order to not to repeat the provisionKubernetesNamespace requests when che-server executes the provision request lasts less then 15 sec.
  • Loading branch information
vinokurig authored Nov 27, 2023
1 parent b02ee12 commit 26cde8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CheAxiosInstance {
private readonly axiosInstance: AxiosInstance;

private constructor() {
this.axiosInstance = axios.create({ timeout: 5000 });
this.axiosInstance = axios.create({ timeout: 15000 });
}

public static getInstance(): CheAxiosInstance {
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard-frontend/src/store/SanityCheck/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { createObject } from '@/store/helpers';

import { AppThunk } from '..';

const secToStale = 5;
const secToStale = 15;
const timeToStale = secToStale * 1000;
const maxAttemptsNumber = 2;

Expand Down

0 comments on commit 26cde8b

Please sign in to comment.