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.mjs
CHANGED
|
@@ -1898,6 +1898,7 @@ async function updateClassInclude(client, className, includeType, source, lockHa
|
|
|
1898
1898
|
// src/core/adt/craud/activation.ts
|
|
1899
1899
|
var MAX_POLL_ATTEMPTS = 30;
|
|
1900
1900
|
var POLL_RETRY_DELAY_MS = 1e3;
|
|
1901
|
+
var LONG_POLL_TIMEOUT_MS = 36e5;
|
|
1901
1902
|
var RUN_ID_REGEX = /\/activation\/runs\/([^?/]+)/;
|
|
1902
1903
|
var BACKGROUND_RUN_MEDIA_TYPE = "application/vnd.sap.adt.backgroundrun.v1+xml";
|
|
1903
1904
|
async function activateObjects(client, objects) {
|
|
@@ -1960,7 +1961,8 @@ async function activateByReferences(client, references) {
|
|
|
1960
1961
|
method: "GET",
|
|
1961
1962
|
path: `/sap/bc/adt/activation/runs/${runId}`,
|
|
1962
1963
|
params: { "withLongPolling": "true" },
|
|
1963
|
-
headers: { "Accept": BACKGROUND_RUN_MEDIA_TYPE }
|
|
1964
|
+
headers: { "Accept": BACKGROUND_RUN_MEDIA_TYPE },
|
|
1965
|
+
timeout: LONG_POLL_TIMEOUT_MS
|
|
1964
1966
|
});
|
|
1965
1967
|
if (pollErr) return err(pollErr);
|
|
1966
1968
|
debug(`Activation poll attempt ${pollAttempt} status: ${pollRes.status}`);
|