Skip to content

Commit

Permalink
Merge pull request #427 from bcgov/increase-dairy-timeouts
Browse files Browse the repository at this point in the history
double dairy timeouts
  • Loading branch information
barrfalk authored Dec 7, 2023
2 parents 7001ea5 + 22277b4 commit 4829e21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function download(jobId) {
null,
{
responseType: "arraybuffer", // needed for binaries unless you want pain
timeout: 30000, // override default timeout as this call could take a while
timeout: 60000, // override default timeout as this call could take a while
}
);

Expand Down
8 changes: 6 additions & 2 deletions app/client/src/features/documents/dairyNoticesSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const fetchQueuedDairyNotices = createAsyncThunk(
const response = await Api.post(
"documents/dairyNotices/queued",
payload,
30000
60000
);
return response.data;
} catch (error) {
Expand All @@ -29,7 +29,11 @@ export const startDairyNoticeJob = createAsyncThunk(
"dairyNotices/startDairyNoticeJob",
async (data, thunkApi) => {
try {
const response = await Api.post("documents/dairyNotices/startJob", data, 30000);
const response = await Api.post(
"documents/dairyNotices/startJob",
data,
60000
);
return response.data;
} catch (error) {
if (error instanceof ApiError) {
Expand Down

0 comments on commit 4829e21

Please sign in to comment.