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

Change upload timeout on client nginx #2959

Merged
merged 2 commits into from
Mar 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
8 changes: 4 additions & 4 deletions packages/client/hmi-client/docker/timeouts.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
proxy_connect_timeout 300s;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
send_timeout 300s;
proxy_connect_timeout 3600s;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
send_timeout 3600s;
4 changes: 2 additions & 2 deletions packages/client/hmi-client/src/services/artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function createNewArtifactFromGithubFile(
const urlResponse = await API.put(
`/artifacts/${newArtifact.id}/upload-artifact-from-github?filename=${fileName}&path=${path}&repo-owner-and-name=${repoOwnerAndName}`,
{
timeout: 30000
timeout: 3600000
}
);

Expand Down Expand Up @@ -113,7 +113,7 @@ async function addFileToArtifact(
);
}
},
timeout: 30000
timeout: 3600000
});

return response && response.status < 400;
Expand Down
4 changes: 2 additions & 2 deletions packages/client/hmi-client/src/services/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function uploadCodeToProjectFromGithub(
const urlResponse = await API.put(
`/code-asset/${newCode.id}/upload-code-from-github?filename=${fileName}&path=${path}&repo-owner-and-name=${repoOwnerAndName}`,
{
timeout: 30000
timeout: 3600000
}
);

Expand Down Expand Up @@ -128,7 +128,7 @@ async function uploadCodeFromGithubRepo(
const urlResponse = await API.put(
`/code-asset/${newCode.id}/upload-code-from-github-repo?repo-owner-and-name=${repoOwnerAndName}&repo-name=${repoName}`,
{
timeout: 30000
timeout: 3600000
}
);

Expand Down
2 changes: 1 addition & 1 deletion packages/client/hmi-client/src/services/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async function createNewDatasetFromGithubFile(
const urlResponse = await API.put(
`/datasets/${newDataset.id}/upload-csv-from-github?filename=${fileName}&path=${path}&repo-owner-and-name=${repoOwnerAndName}`,
{
timeout: 30000
timeout: 3600000
}
);

Expand Down
4 changes: 2 additions & 2 deletions packages/client/hmi-client/src/services/document-assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function createNewDocumentFromGithubFile(
const urlResponse = await API.put(
`/document-asset/${newDocument.id}/upload-document-from-github?filename=${fileName}&path=${path}&repo-owner-and-name=${repoOwnerAndName}`,
{
timeout: 30000
timeout: 3600000
}
);

Expand Down Expand Up @@ -138,7 +138,7 @@ async function addFileToDocumentAsset(
);
}
},
timeout: 30000
timeout: 3600000
});

return response && response.status < 400;
Expand Down
Loading