@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/automation.js
CHANGED
|
@@ -13962,6 +13962,7 @@ var init_users7 = __esm({
|
|
|
13962
13962
|
|
|
13963
13963
|
// ../pro/packages/pro/src/utilities/delay.ts
|
|
13964
13964
|
async function backOff(fn2, errMsg) {
|
|
13965
|
+
let error;
|
|
13965
13966
|
let attempts = 5, success = false, response2, first = true;
|
|
13966
13967
|
for (; attempts > 0; attempts--) {
|
|
13967
13968
|
try {
|
|
@@ -13973,10 +13974,11 @@ async function backOff(fn2, errMsg) {
|
|
|
13973
13974
|
success = true;
|
|
13974
13975
|
break;
|
|
13975
13976
|
} catch (err) {
|
|
13977
|
+
error = err;
|
|
13976
13978
|
}
|
|
13977
13979
|
}
|
|
13978
13980
|
if (!success) {
|
|
13979
|
-
logging_exports.logAlert(`Failed to backoff`,
|
|
13981
|
+
logging_exports.logAlert(`Failed to backoff: ${errMsg}`, error);
|
|
13980
13982
|
}
|
|
13981
13983
|
return response2;
|
|
13982
13984
|
}
|