Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Jul 10, 2024
1 parent 5fa6e57 commit d9289a4
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions NineChronicles.DataProvider.Executable/Commands/MySqlMigration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,20 @@ public void Migration(
}
}

taskArray[item.i] = Task.Factory.StartNew(() =>
try
{
List<ICommittedActionEvaluation> actionEvaluations = EvaluateBlock(block);
Console.WriteLine($"Block progress: #{block.Index}/{remainingCount}");
return actionEvaluations;
});
taskArray[item.i] = Task.Factory.StartNew(() =>
{
List<ICommittedActionEvaluation> actionEvaluations = EvaluateBlock(block);
Console.WriteLine($"Block progress: #{block.Index}/{remainingCount}");
return actionEvaluations;
});
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
}
}

if (interval < remainingCount)
Expand Down Expand Up @@ -293,6 +301,7 @@ public void Migration(
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
}

DateTimeOffset end = DateTimeOffset.UtcNow;
Expand Down

0 comments on commit d9289a4

Please sign in to comment.