@budibase/server 2.6.19-alpha.40 → 2.6.19-alpha.41
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/automation.js +3 -1
- package/dist/automation.js.map +2 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +3 -3
- package/dist/query.js +3 -1
- package/dist/query.js.map +2 -2
- package/package.json +8 -8
package/dist/query.js
CHANGED
|
@@ -20951,6 +20951,7 @@ init_src();
|
|
|
20951
20951
|
|
|
20952
20952
|
// ../pro/packages/pro/src/utilities/delay.ts
|
|
20953
20953
|
async function backOff(fn, errMsg) {
|
|
20954
|
+
let error;
|
|
20954
20955
|
let attempts = 5, success = false, response, first = true;
|
|
20955
20956
|
for (; attempts > 0; attempts--) {
|
|
20956
20957
|
try {
|
|
@@ -20962,10 +20963,11 @@ async function backOff(fn, errMsg) {
|
|
|
20962
20963
|
success = true;
|
|
20963
20964
|
break;
|
|
20964
20965
|
} catch (err) {
|
|
20966
|
+
error = err;
|
|
20965
20967
|
}
|
|
20966
20968
|
}
|
|
20967
20969
|
if (!success) {
|
|
20968
|
-
logging_exports.logAlert(`Failed to backoff`,
|
|
20970
|
+
logging_exports.logAlert(`Failed to backoff: ${errMsg}`, error);
|
|
20969
20971
|
}
|
|
20970
20972
|
return response;
|
|
20971
20973
|
}
|