@adaptic/backend-legacy 0.0.959 → 0.0.961
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/ABTest.cjs +180 -66
- package/Account.cjs +180 -66
- package/AccountDecisionRecord.cjs +180 -66
- package/AccountLinkingRequest.cjs +180 -66
- package/Action.cjs +180 -66
- package/Alert.cjs +180 -66
- package/Allocation.cjs +180 -66
- package/AlpacaAccount.cjs +180 -66
- package/AnalyticsConfiguration.cjs +180 -66
- package/AnalyticsSnapshot.cjs +180 -66
- package/Asset.cjs +180 -66
- package/AuditLog.cjs +180 -66
- package/Authenticator.cjs +180 -66
- package/Configuration.cjs +180 -66
- package/ConflictEvent.cjs +180 -66
- package/ConnectionHealthSnapshot.cjs +180 -66
- package/Customer.cjs +180 -66
- package/DeadLetterMessage.cjs +180 -66
- package/DecisionMemorySummary.cjs +180 -66
- package/EconomicEvent.cjs +180 -66
- package/EquityBar.cjs +180 -66
- package/Event.cjs +180 -66
- package/EventSnapshot.cjs +180 -66
- package/FeatureImportanceAnalysis.cjs +180 -66
- package/InstitutionalFlowSignal.cjs +180 -66
- package/InstitutionalHolding.cjs +180 -66
- package/InstitutionalSentimentAlerts.cjs +180 -66
- package/InstitutionalSentimentErrors.cjs +180 -66
- package/InstitutionalSentimentHistory.cjs +180 -66
- package/InstitutionalSentimentMetrics.cjs +180 -66
- package/InviteToken.cjs +180 -66
- package/LinkedProvider.cjs +180 -66
- package/LlmConfiguration.cjs +180 -66
- package/MLModelVersion.cjs +180 -66
- package/MLTrainingData.cjs +180 -66
- package/MarketSentiment.cjs +180 -66
- package/ModelArtifact.cjs +180 -66
- package/ModelVersion.cjs +180 -66
- package/ModelVersionArtifact.cjs +180 -66
- package/NewsArticle.cjs +180 -66
- package/NewsArticleAssetSentiment.cjs +180 -66
- package/OptionsContract.cjs +180 -66
- package/OptionsGreeksHistory.cjs +180 -66
- package/OptionsPosition.cjs +180 -66
- package/OptionsPositionEvent.cjs +180 -66
- package/OptionsTradeExecution.cjs +180 -66
- package/PolicyOverlay.cjs +180 -66
- package/PortfolioGreeksHistory.cjs +180 -66
- package/ScheduledOptionOrder.cjs +180 -66
- package/Session.cjs +180 -66
- package/SignalGeneratorMetrics.cjs +180 -66
- package/SignalLineage.cjs +180 -66
- package/SignalOutcome.cjs +180 -66
- package/SignalPriorityQueue.cjs +180 -66
- package/SyncEvent.cjs +180 -66
- package/SystemAlert.cjs +180 -66
- package/Trade.cjs +180 -66
- package/TradeAuditEvent.cjs +180 -66
- package/TradeExecutionHistory.cjs +180 -66
- package/TradeOutcome.cjs +180 -66
- package/TradingPolicy.cjs +180 -66
- package/User.cjs +180 -66
- package/VerificationToken.cjs +180 -66
- package/WaitlistEntry.cjs +180 -66
- package/esm/ABTest.d.ts.map +1 -1
- package/esm/ABTest.js.map +1 -1
- package/esm/ABTest.mjs +180 -66
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +180 -66
- package/esm/AccountDecisionRecord.d.ts.map +1 -1
- package/esm/AccountDecisionRecord.js.map +1 -1
- package/esm/AccountDecisionRecord.mjs +180 -66
- package/esm/AccountLinkingRequest.d.ts.map +1 -1
- package/esm/AccountLinkingRequest.js.map +1 -1
- package/esm/AccountLinkingRequest.mjs +180 -66
- package/esm/Action.d.ts.map +1 -1
- package/esm/Action.js.map +1 -1
- package/esm/Action.mjs +180 -66
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +180 -66
- package/esm/Allocation.d.ts.map +1 -1
- package/esm/Allocation.js.map +1 -1
- package/esm/Allocation.mjs +180 -66
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +180 -66
- package/esm/AnalyticsConfiguration.d.ts.map +1 -1
- package/esm/AnalyticsConfiguration.js.map +1 -1
- package/esm/AnalyticsConfiguration.mjs +180 -66
- package/esm/AnalyticsSnapshot.d.ts.map +1 -1
- package/esm/AnalyticsSnapshot.js.map +1 -1
- package/esm/AnalyticsSnapshot.mjs +180 -66
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +180 -66
- package/esm/AuditLog.d.ts.map +1 -1
- package/esm/AuditLog.js.map +1 -1
- package/esm/AuditLog.mjs +180 -66
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +180 -66
- package/esm/Configuration.d.ts.map +1 -1
- package/esm/Configuration.js.map +1 -1
- package/esm/Configuration.mjs +180 -66
- package/esm/ConflictEvent.d.ts.map +1 -1
- package/esm/ConflictEvent.js.map +1 -1
- package/esm/ConflictEvent.mjs +180 -66
- package/esm/ConnectionHealthSnapshot.d.ts.map +1 -1
- package/esm/ConnectionHealthSnapshot.js.map +1 -1
- package/esm/ConnectionHealthSnapshot.mjs +180 -66
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +180 -66
- package/esm/DeadLetterMessage.d.ts.map +1 -1
- package/esm/DeadLetterMessage.js.map +1 -1
- package/esm/DeadLetterMessage.mjs +180 -66
- package/esm/DecisionMemorySummary.d.ts.map +1 -1
- package/esm/DecisionMemorySummary.js.map +1 -1
- package/esm/DecisionMemorySummary.mjs +180 -66
- package/esm/EconomicEvent.d.ts.map +1 -1
- package/esm/EconomicEvent.js.map +1 -1
- package/esm/EconomicEvent.mjs +180 -66
- package/esm/EquityBar.d.ts.map +1 -1
- package/esm/EquityBar.js.map +1 -1
- package/esm/EquityBar.mjs +180 -66
- package/esm/Event.d.ts.map +1 -1
- package/esm/Event.js.map +1 -1
- package/esm/Event.mjs +180 -66
- package/esm/EventSnapshot.d.ts.map +1 -1
- package/esm/EventSnapshot.js.map +1 -1
- package/esm/EventSnapshot.mjs +180 -66
- package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
- package/esm/FeatureImportanceAnalysis.js.map +1 -1
- package/esm/FeatureImportanceAnalysis.mjs +180 -66
- package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
- package/esm/InstitutionalFlowSignal.js.map +1 -1
- package/esm/InstitutionalFlowSignal.mjs +180 -66
- package/esm/InstitutionalHolding.d.ts.map +1 -1
- package/esm/InstitutionalHolding.js.map +1 -1
- package/esm/InstitutionalHolding.mjs +180 -66
- package/esm/InstitutionalSentimentAlerts.d.ts.map +1 -1
- package/esm/InstitutionalSentimentAlerts.js.map +1 -1
- package/esm/InstitutionalSentimentAlerts.mjs +180 -66
- package/esm/InstitutionalSentimentErrors.d.ts.map +1 -1
- package/esm/InstitutionalSentimentErrors.js.map +1 -1
- package/esm/InstitutionalSentimentErrors.mjs +180 -66
- package/esm/InstitutionalSentimentHistory.d.ts.map +1 -1
- package/esm/InstitutionalSentimentHistory.js.map +1 -1
- package/esm/InstitutionalSentimentHistory.mjs +180 -66
- package/esm/InstitutionalSentimentMetrics.d.ts.map +1 -1
- package/esm/InstitutionalSentimentMetrics.js.map +1 -1
- package/esm/InstitutionalSentimentMetrics.mjs +180 -66
- package/esm/InviteToken.d.ts.map +1 -1
- package/esm/InviteToken.js.map +1 -1
- package/esm/InviteToken.mjs +180 -66
- package/esm/LinkedProvider.d.ts.map +1 -1
- package/esm/LinkedProvider.js.map +1 -1
- package/esm/LinkedProvider.mjs +180 -66
- package/esm/LlmConfiguration.d.ts.map +1 -1
- package/esm/LlmConfiguration.js.map +1 -1
- package/esm/LlmConfiguration.mjs +180 -66
- package/esm/MLModelVersion.d.ts.map +1 -1
- package/esm/MLModelVersion.js.map +1 -1
- package/esm/MLModelVersion.mjs +180 -66
- package/esm/MLTrainingData.d.ts.map +1 -1
- package/esm/MLTrainingData.js.map +1 -1
- package/esm/MLTrainingData.mjs +180 -66
- package/esm/MarketSentiment.d.ts.map +1 -1
- package/esm/MarketSentiment.js.map +1 -1
- package/esm/MarketSentiment.mjs +180 -66
- package/esm/ModelArtifact.d.ts.map +1 -1
- package/esm/ModelArtifact.js.map +1 -1
- package/esm/ModelArtifact.mjs +180 -66
- package/esm/ModelVersion.d.ts.map +1 -1
- package/esm/ModelVersion.js.map +1 -1
- package/esm/ModelVersion.mjs +180 -66
- package/esm/ModelVersionArtifact.d.ts.map +1 -1
- package/esm/ModelVersionArtifact.js.map +1 -1
- package/esm/ModelVersionArtifact.mjs +180 -66
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +180 -66
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +180 -66
- package/esm/OptionsContract.d.ts.map +1 -1
- package/esm/OptionsContract.js.map +1 -1
- package/esm/OptionsContract.mjs +180 -66
- package/esm/OptionsGreeksHistory.d.ts.map +1 -1
- package/esm/OptionsGreeksHistory.js.map +1 -1
- package/esm/OptionsGreeksHistory.mjs +180 -66
- package/esm/OptionsPosition.d.ts.map +1 -1
- package/esm/OptionsPosition.js.map +1 -1
- package/esm/OptionsPosition.mjs +180 -66
- package/esm/OptionsPositionEvent.d.ts.map +1 -1
- package/esm/OptionsPositionEvent.js.map +1 -1
- package/esm/OptionsPositionEvent.mjs +180 -66
- package/esm/OptionsTradeExecution.d.ts.map +1 -1
- package/esm/OptionsTradeExecution.js.map +1 -1
- package/esm/OptionsTradeExecution.mjs +180 -66
- package/esm/PolicyOverlay.d.ts.map +1 -1
- package/esm/PolicyOverlay.js.map +1 -1
- package/esm/PolicyOverlay.mjs +180 -66
- package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
- package/esm/PortfolioGreeksHistory.js.map +1 -1
- package/esm/PortfolioGreeksHistory.mjs +180 -66
- package/esm/ScheduledOptionOrder.d.ts.map +1 -1
- package/esm/ScheduledOptionOrder.js.map +1 -1
- package/esm/ScheduledOptionOrder.mjs +180 -66
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +180 -66
- package/esm/SignalGeneratorMetrics.d.ts.map +1 -1
- package/esm/SignalGeneratorMetrics.js.map +1 -1
- package/esm/SignalGeneratorMetrics.mjs +180 -66
- package/esm/SignalLineage.d.ts.map +1 -1
- package/esm/SignalLineage.js.map +1 -1
- package/esm/SignalLineage.mjs +180 -66
- package/esm/SignalOutcome.d.ts.map +1 -1
- package/esm/SignalOutcome.js.map +1 -1
- package/esm/SignalOutcome.mjs +180 -66
- package/esm/SignalPriorityQueue.d.ts.map +1 -1
- package/esm/SignalPriorityQueue.js.map +1 -1
- package/esm/SignalPriorityQueue.mjs +180 -66
- package/esm/SyncEvent.d.ts.map +1 -1
- package/esm/SyncEvent.js.map +1 -1
- package/esm/SyncEvent.mjs +180 -66
- package/esm/SystemAlert.d.ts.map +1 -1
- package/esm/SystemAlert.js.map +1 -1
- package/esm/SystemAlert.mjs +180 -66
- package/esm/Trade.d.ts.map +1 -1
- package/esm/Trade.js.map +1 -1
- package/esm/Trade.mjs +180 -66
- package/esm/TradeAuditEvent.d.ts.map +1 -1
- package/esm/TradeAuditEvent.js.map +1 -1
- package/esm/TradeAuditEvent.mjs +180 -66
- package/esm/TradeExecutionHistory.d.ts.map +1 -1
- package/esm/TradeExecutionHistory.js.map +1 -1
- package/esm/TradeExecutionHistory.mjs +180 -66
- package/esm/TradeOutcome.d.ts.map +1 -1
- package/esm/TradeOutcome.js.map +1 -1
- package/esm/TradeOutcome.mjs +180 -66
- package/esm/TradingPolicy.d.ts.map +1 -1
- package/esm/TradingPolicy.js.map +1 -1
- package/esm/TradingPolicy.mjs +180 -66
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +180 -66
- package/esm/VerificationToken.d.ts.map +1 -1
- package/esm/VerificationToken.js.map +1 -1
- package/esm/VerificationToken.mjs +180 -66
- package/esm/WaitlistEntry.d.ts.map +1 -1
- package/esm/WaitlistEntry.js.map +1 -1
- package/esm/WaitlistEntry.mjs +180 -66
- package/esm/index.d.ts.map +1 -1
- package/package.json +1 -1
package/esm/MLModelVersion.mjs
CHANGED
|
@@ -150,13 +150,28 @@ export const MLModelVersion = {
|
|
|
150
150
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
151
151
|
continue;
|
|
152
152
|
}
|
|
153
|
-
// Log structured error details and rethrow
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
153
|
+
// Log structured error details and rethrow.
|
|
154
|
+
// Demote transient failures to WARN with explicit transient+recoveryHint
|
|
155
|
+
// metadata so log analytics can distinguish recoverable upstream retries
|
|
156
|
+
// from true defects.
|
|
157
|
+
if (isConnectionError) {
|
|
158
|
+
logger.warn("Database create operation failed (transient after retries)", {
|
|
159
|
+
operation: 'createOneMLModelVersion',
|
|
160
|
+
model: 'MLModelVersion',
|
|
161
|
+
error: String(error),
|
|
162
|
+
isRetryable: true,
|
|
163
|
+
transient: true,
|
|
164
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
logger.error("Database create operation failed", {
|
|
169
|
+
operation: 'createOneMLModelVersion',
|
|
170
|
+
model: 'MLModelVersion',
|
|
171
|
+
error: String(error),
|
|
172
|
+
isRetryable: false,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
160
175
|
throw error;
|
|
161
176
|
}
|
|
162
177
|
}
|
|
@@ -285,13 +300,25 @@ export const MLModelVersion = {
|
|
|
285
300
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
286
301
|
continue;
|
|
287
302
|
}
|
|
288
|
-
// Log structured error details and rethrow
|
|
289
|
-
|
|
290
|
-
operation
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
303
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
304
|
+
if (isConnectionError) {
|
|
305
|
+
logger.warn("Database createMany operation failed (transient after retries)", {
|
|
306
|
+
operation: 'createManyMLModelVersion',
|
|
307
|
+
model: 'MLModelVersion',
|
|
308
|
+
error: String(error),
|
|
309
|
+
isRetryable: true,
|
|
310
|
+
transient: true,
|
|
311
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
logger.error("Database createMany operation failed", {
|
|
316
|
+
operation: 'createManyMLModelVersion',
|
|
317
|
+
model: 'MLModelVersion',
|
|
318
|
+
error: String(error),
|
|
319
|
+
isRetryable: false,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
295
322
|
throw error;
|
|
296
323
|
}
|
|
297
324
|
}
|
|
@@ -449,14 +476,27 @@ export const MLModelVersion = {
|
|
|
449
476
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
450
477
|
continue;
|
|
451
478
|
}
|
|
452
|
-
// Log structured error details and rethrow
|
|
453
|
-
|
|
454
|
-
operation
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
479
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
480
|
+
if (isConnectionError) {
|
|
481
|
+
logger.warn("Database update operation failed (transient after retries)", {
|
|
482
|
+
operation: 'updateOneMLModelVersion',
|
|
483
|
+
model: 'MLModelVersion',
|
|
484
|
+
error: String(error),
|
|
485
|
+
recordId: props.id,
|
|
486
|
+
isRetryable: true,
|
|
487
|
+
transient: true,
|
|
488
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
logger.error("Database update operation failed", {
|
|
493
|
+
operation: 'updateOneMLModelVersion',
|
|
494
|
+
model: 'MLModelVersion',
|
|
495
|
+
error: String(error),
|
|
496
|
+
recordId: props.id,
|
|
497
|
+
isRetryable: false,
|
|
498
|
+
});
|
|
499
|
+
}
|
|
460
500
|
throw error;
|
|
461
501
|
}
|
|
462
502
|
}
|
|
@@ -619,14 +659,27 @@ export const MLModelVersion = {
|
|
|
619
659
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
620
660
|
continue;
|
|
621
661
|
}
|
|
622
|
-
// Log structured error details and rethrow
|
|
623
|
-
|
|
624
|
-
operation
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
662
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
663
|
+
if (isConnectionError) {
|
|
664
|
+
logger.warn("Database upsert operation failed (transient after retries)", {
|
|
665
|
+
operation: 'upsertOneMLModelVersion',
|
|
666
|
+
model: 'MLModelVersion',
|
|
667
|
+
error: String(error),
|
|
668
|
+
recordId: props.id,
|
|
669
|
+
isRetryable: true,
|
|
670
|
+
transient: true,
|
|
671
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
else {
|
|
675
|
+
logger.error("Database upsert operation failed", {
|
|
676
|
+
operation: 'upsertOneMLModelVersion',
|
|
677
|
+
model: 'MLModelVersion',
|
|
678
|
+
error: String(error),
|
|
679
|
+
recordId: props.id,
|
|
680
|
+
isRetryable: false,
|
|
681
|
+
});
|
|
682
|
+
}
|
|
630
683
|
throw error;
|
|
631
684
|
}
|
|
632
685
|
}
|
|
@@ -782,13 +835,25 @@ export const MLModelVersion = {
|
|
|
782
835
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
783
836
|
continue;
|
|
784
837
|
}
|
|
785
|
-
// Log structured error details and rethrow
|
|
786
|
-
|
|
787
|
-
operation
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
838
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
839
|
+
if (isConnectionError) {
|
|
840
|
+
logger.warn("Database updateMany operation failed (transient after retries)", {
|
|
841
|
+
operation: 'updateManyMLModelVersion',
|
|
842
|
+
model: 'MLModelVersion',
|
|
843
|
+
error: String(error),
|
|
844
|
+
isRetryable: true,
|
|
845
|
+
transient: true,
|
|
846
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
else {
|
|
850
|
+
logger.error("Database updateMany operation failed", {
|
|
851
|
+
operation: 'updateManyMLModelVersion',
|
|
852
|
+
model: 'MLModelVersion',
|
|
853
|
+
error: String(error),
|
|
854
|
+
isRetryable: false,
|
|
855
|
+
});
|
|
856
|
+
}
|
|
792
857
|
throw error;
|
|
793
858
|
}
|
|
794
859
|
}
|
|
@@ -910,14 +975,27 @@ export const MLModelVersion = {
|
|
|
910
975
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
911
976
|
continue;
|
|
912
977
|
}
|
|
913
|
-
// Log structured error details and rethrow
|
|
914
|
-
|
|
915
|
-
operation
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
978
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
979
|
+
if (isConnectionError) {
|
|
980
|
+
logger.warn("Database delete operation failed (transient after retries)", {
|
|
981
|
+
operation: 'deleteOneMLModelVersion',
|
|
982
|
+
model: 'MLModelVersion',
|
|
983
|
+
error: String(error),
|
|
984
|
+
recordId: props.id,
|
|
985
|
+
isRetryable: true,
|
|
986
|
+
transient: true,
|
|
987
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
else {
|
|
991
|
+
logger.error("Database delete operation failed", {
|
|
992
|
+
operation: 'deleteOneMLModelVersion',
|
|
993
|
+
model: 'MLModelVersion',
|
|
994
|
+
error: String(error),
|
|
995
|
+
recordId: props.id,
|
|
996
|
+
isRetryable: false,
|
|
997
|
+
});
|
|
998
|
+
}
|
|
921
999
|
throw error;
|
|
922
1000
|
}
|
|
923
1001
|
}
|
|
@@ -1012,13 +1090,25 @@ export const MLModelVersion = {
|
|
|
1012
1090
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1013
1091
|
continue;
|
|
1014
1092
|
}
|
|
1015
|
-
// Log structured error details and rethrow
|
|
1016
|
-
|
|
1017
|
-
operation
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1093
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1094
|
+
if (isConnectionError) {
|
|
1095
|
+
logger.warn("Database get operation failed (transient after retries)", {
|
|
1096
|
+
operation: 'getMLModelVersion',
|
|
1097
|
+
model: 'MLModelVersion',
|
|
1098
|
+
error: String(error),
|
|
1099
|
+
isRetryable: true,
|
|
1100
|
+
transient: true,
|
|
1101
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
else {
|
|
1105
|
+
logger.error("Database get operation failed", {
|
|
1106
|
+
operation: 'getMLModelVersion',
|
|
1107
|
+
model: 'MLModelVersion',
|
|
1108
|
+
error: String(error),
|
|
1109
|
+
isRetryable: false,
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1022
1112
|
throw error;
|
|
1023
1113
|
}
|
|
1024
1114
|
}
|
|
@@ -1104,13 +1194,25 @@ export const MLModelVersion = {
|
|
|
1104
1194
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1105
1195
|
continue;
|
|
1106
1196
|
}
|
|
1107
|
-
// Log structured error details and rethrow
|
|
1108
|
-
|
|
1109
|
-
operation
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1197
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1198
|
+
if (isConnectionError) {
|
|
1199
|
+
logger.warn("Database getAll operation failed (transient after retries)", {
|
|
1200
|
+
operation: 'getAllMLModelVersion',
|
|
1201
|
+
model: 'MLModelVersion',
|
|
1202
|
+
error: String(error),
|
|
1203
|
+
isRetryable: true,
|
|
1204
|
+
transient: true,
|
|
1205
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
else {
|
|
1209
|
+
logger.error("Database getAll operation failed", {
|
|
1210
|
+
operation: 'getAllMLModelVersion',
|
|
1211
|
+
model: 'MLModelVersion',
|
|
1212
|
+
error: String(error),
|
|
1213
|
+
isRetryable: false,
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1114
1216
|
throw error;
|
|
1115
1217
|
}
|
|
1116
1218
|
}
|
|
@@ -1217,13 +1319,25 @@ export const MLModelVersion = {
|
|
|
1217
1319
|
await new Promise(resolve => setTimeout(resolve, delay));
|
|
1218
1320
|
continue;
|
|
1219
1321
|
}
|
|
1220
|
-
// Log structured error details and rethrow
|
|
1221
|
-
|
|
1222
|
-
operation
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1322
|
+
// Log structured error details and rethrow (transient -> WARN).
|
|
1323
|
+
if (isConnectionError) {
|
|
1324
|
+
logger.warn("Database findMany operation failed (transient after retries)", {
|
|
1325
|
+
operation: 'findManyMLModelVersion',
|
|
1326
|
+
model: 'MLModelVersion',
|
|
1327
|
+
error: String(error),
|
|
1328
|
+
isRetryable: true,
|
|
1329
|
+
transient: true,
|
|
1330
|
+
recoveryHint: "Upstream caller should retry on next cycle",
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
else {
|
|
1334
|
+
logger.error("Database findMany operation failed", {
|
|
1335
|
+
operation: 'findManyMLModelVersion',
|
|
1336
|
+
model: 'MLModelVersion',
|
|
1337
|
+
error: String(error),
|
|
1338
|
+
isRetryable: false,
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1227
1341
|
throw error;
|
|
1228
1342
|
}
|
|
1229
1343
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MLTrainingData.d.ts","sourceRoot":"","sources":["../../src/MLTrainingData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC5G,OAAO,EAAmB,gBAAgB,EAAE,qBAAqB,EAAoB,M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