Skip to content

Commit cf208ea

Browse files
committed
🛠 iterative reintrospection on failure fixed
1 parent 1246851 commit cf208ea

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tdvcli/AST/Server/CommandIntrospect.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@ public async Task Execute(TdvWebServiceClient tdvClient, IInfoOutput output, Par
9999
.Union(resourcesToDrop.Select(x => x.Item1))
100100
.Count();
101101

102+
if (iteration <= 0)
103+
output.Info($"Introspecting {jobsToBeSpawned} data sources...");
104+
else
105+
output.Info($"Reintrospecting {jobsToBeSpawned} data sources ({iteration + 1}. iteration)...");
106+
102107
ValueTuple<string, Internal.IntrospectionResultSimplified[]>[] introspectionResult;
103-
output.Info($"Introspecting {jobsToBeSpawned} data sources...");
104108
using (var progressFeedback = new Internal.IntrospectionProgressFeedback(output, jobsToBeSpawned))
105-
introspectionResult = await RunTheIntrospection(tdvClient, filteredIntrospectablesEnumerable, resourcesToDrop, updateExistingResourcesOverride, progressFeedback.Feedback);
109+
introspectionResult = await RunTheIntrospection(tdvClient, filteredIntrospectables, resourcesToDrop, updateExistingResourcesOverride, progressFeedback.Feedback);
106110

107111
var introspectionIssues = introspectionResult
108112
.Unnest(
@@ -570,7 +574,12 @@ private static async Task<ValueTuple<string, string, string, TdvResourceType, st
570574
{
571575
IntrospectionOptions = new TdvIntrospectionOptions()
572576
{
573-
UpdateAllIntrospectedResources = updateExisting
577+
UpdateAllIntrospectedResources = updateExisting,
578+
AutoRollback = false,
579+
RunInBackgroundTransaction = true,
580+
ScanForNewResourcesToAutoAdd = false,
581+
FailFast = false,
582+
CommitOnFailure = true
574583
}
575584
},
576585
progressIndicator

0 commit comments

Comments
 (0)