Skip to content

Commit

Permalink
add machine tracking status
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusongit committed Dec 7, 2023
1 parent 238cdc1 commit 1de9921
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DynamoCore/Scheduler/UpdateGraphAsyncTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using ProtoScript.Runners;
using Dynamo.Graph.Nodes;
using Dynamo.Graph.Workspaces;
using Dynamo.Logging;

namespace Dynamo.Scheduler
{
Expand Down Expand Up @@ -103,7 +104,10 @@ protected override void HandleTaskExecutionCore()
// EngineController might be disposed and become invalid.
// After MAGN-5167 is done, we could remove this checking.
if (!engineController.IsDisposed)
{
Analytics.TrackActivityStatus(HeartBeatType.Machine.ToString());
engineController.UpdateGraphImmediate(graphSyncData);
}
}

protected override void HandleTaskCompletionCore()
Expand All @@ -116,6 +120,7 @@ protected override void HandleTaskCompletionCore()
}
else
{
Analytics.TrackActivityStatus(HeartBeatType.Machine.ToString());
// Retrieve warnings in the context of ISchedulerThread.
BuildWarnings = engineController.GetBuildWarnings();
RuntimeWarnings = engineController.GetRuntimeWarnings();
Expand Down

0 comments on commit 1de9921

Please sign in to comment.