badmfck-api-server 4.0.92 → 4.0.93
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.
|
@@ -88,7 +88,7 @@ class MicroserviceClient extends BaseService_1.BaseService {
|
|
|
88
88
|
console.log(`Network error on microservice call attempt ${attempt}:`, resp);
|
|
89
89
|
if (attempt < maxAttempts) {
|
|
90
90
|
console.log(`Retrying microservice call... (attempt ${attempt}/${maxAttempts})`);
|
|
91
|
-
TimeframeService_1.TimeframeService.wait(
|
|
91
|
+
await TimeframeService_1.TimeframeService.wait(300 * attempt);
|
|
92
92
|
continue;
|
|
93
93
|
}
|
|
94
94
|
console.log(`Microservice call failed after ${attempt} attempts due to network errors.`);
|
|
@@ -106,7 +106,7 @@ class MicroserviceClient extends BaseService_1.BaseService {
|
|
|
106
106
|
if (isAccepted) {
|
|
107
107
|
console.log(`Microservice call accepted, polling for result... (attempt ${attempt}/${maxAttempts})`);
|
|
108
108
|
if (attempt < maxAttempts) {
|
|
109
|
-
TimeframeService_1.TimeframeService.wait(
|
|
109
|
+
await TimeframeService_1.TimeframeService.wait(300 * attempt);
|
|
110
110
|
continue;
|
|
111
111
|
}
|
|
112
112
|
console.log(`Microservice call timed out after ${attempt} attempts.`);
|