Skip to content

Commit

Permalink
feat: introduce a separate timeout config property for api timeouts (#…
Browse files Browse the repository at this point in the history
…9498)

Co-authored-by: Apoorv Mahajan <apoorv.mahajan@salesforce.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 28, 2021
1 parent b6371f3 commit 678a78a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/api/ApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export function makeRequestBuilderConfig(pathPrefix?: string): IRequestBuilderCo
cache: false,
data: undefined,
params: {},
timeout: (SETTINGS.pollSchedule || 30000) * 2 + 5000,
timeout: (SETTINGS.apiTimeoutMs || SETTINGS.pollSchedule || 30000) * 2 + 5000,
headers: { 'X-RateLimit-App': 'deck' },
};
}
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/config/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export interface ISpinnakerSettings {
};
ga?: string;
};
apiTimeoutMs: number;
authEnabled: boolean;
authEndpoint: string;
authTtl: number;
Expand Down

0 comments on commit 678a78a

Please sign in to comment.