Increase timeout of execute action
This commit is contained in:
parent
6856571643
commit
7b6fad5259
|
|
@ -1,6 +1,6 @@
|
|||
import API, { HttpMethod } from "./Api";
|
||||
import { ApiResponse, GenericApiResponse, ResponseMeta } from "./ApiResponses";
|
||||
import { APIRequest } from "constants/ApiConstants";
|
||||
import { APIRequest, EXECUTE_ACTION_TIMEOUT_MS } from "constants/ApiConstants";
|
||||
import { AxiosPromise } from "axios";
|
||||
import { Datasource } from "./DatasourcesApi";
|
||||
import { PaginationType } from "pages/Editor/APIEditor/Pagination";
|
||||
|
|
@ -194,7 +194,9 @@ class ActionAPI extends API {
|
|||
static executeAction(
|
||||
executeAction: ExecuteActionRequest,
|
||||
): AxiosPromise<ActionApiResponse> {
|
||||
return API.post(ActionAPI.url + "/execute", executeAction);
|
||||
return API.post(ActionAPI.url + "/execute", executeAction, undefined, {
|
||||
timeout: EXECUTE_ACTION_TIMEOUT_MS,
|
||||
});
|
||||
}
|
||||
|
||||
static moveAction(moveRequest: MoveActionRequest) {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ export type ContentType =
|
|||
| "application/x-www-form-urlencoded";
|
||||
|
||||
export const REQUEST_TIMEOUT_MS = 10000;
|
||||
export const EXECUTE_ACTION_TIMEOUT_MS = 15000;
|
||||
|
||||
export const API_REQUEST_HEADERS: APIHeaders = {
|
||||
"Content-Type": "application/json",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user