catalyst-relay 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1934,6 +1934,7 @@ async function updateClassInclude(client, className, includeType, source, lockHa
|
|
|
1934
1934
|
// src/core/adt/craud/activation.ts
|
|
1935
1935
|
var MAX_POLL_ATTEMPTS = 30;
|
|
1936
1936
|
var POLL_RETRY_DELAY_MS = 1e3;
|
|
1937
|
+
var LONG_POLL_TIMEOUT_MS = 36e5;
|
|
1937
1938
|
var RUN_ID_REGEX = /\/activation\/runs\/([^?/]+)/;
|
|
1938
1939
|
var BACKGROUND_RUN_MEDIA_TYPE = "application/vnd.sap.adt.backgroundrun.v1+xml";
|
|
1939
1940
|
async function activateObjects(client, objects) {
|
|
@@ -1996,7 +1997,8 @@ async function activateByReferences(client, references) {
|
|
|
1996
1997
|
method: "GET",
|
|
1997
1998
|
path: `/sap/bc/adt/activation/runs/${runId}`,
|
|
1998
1999
|
params: { "withLongPolling": "true" },
|
|
1999
|
-
headers: { "Accept": BACKGROUND_RUN_MEDIA_TYPE }
|
|
2000
|
+
headers: { "Accept": BACKGROUND_RUN_MEDIA_TYPE },
|
|
2001
|
+
timeout: LONG_POLL_TIMEOUT_MS
|
|
2000
2002
|
});
|
|
2001
2003
|
if (pollErr) return err(pollErr);
|
|
2002
2004
|
debug(`Activation poll attempt ${pollAttempt} status: ${pollRes.status}`);
|