Skip to content

Commit ef50e39

Browse files
Merge pull request #295 from cap-js/SDMEXT-LeadingAppChangesMT-feature
Server timeouts
2 parents 2c2b9fc + 24c3f82 commit ef50e39

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

app/multi-tenant/central-space/cap-js-incidents-app/mta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ modules:
159159
name: incidents-mtx-srv # must be used in xs-app.json as well
160160
url: ~{srv-url}
161161
forwardAuthToken: true
162+
timeout: 3600000
162163
- name: mtx-api
163164
group: destinations
164165
properties:

app/multi-tenant/central-space/cap-js-incidents-app/srv/server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ cds.once('bootstrap', async (app) => {
2626
// }
2727
});
2828

29+
cds.once('listening', ({ server }) => {
30+
// Increase timeout to 60 minutes (3600000ms)
31+
server.requestTimeout = 3600000; // 60 minutes in milliseconds
32+
});
33+
2934
module.exports = cds.server;

app/multi-tenant/personal-space/cap-js-incidents-app/mta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ modules:
159159
name: incidents-mtx-srv # must be used in xs-app.json as well
160160
url: ~{srv-url}
161161
forwardAuthToken: true
162+
timeout: 3600000
162163
- name: mtx-api
163164
group: destinations
164165
properties:

app/multi-tenant/personal-space/cap-js-incidents-app/srv/server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ cds.once('bootstrap', async (app) => {
2626
// }
2727
});
2828

29+
cds.once('listening', ({ server }) => {
30+
// Increase timeout to 60 minutes (3600000ms)
31+
server.requestTimeout = 3600000; // 60 minutes in milliseconds
32+
});
33+
2934
module.exports = cds.server;

0 commit comments

Comments
 (0)