Skip to content

Commit

Permalink
Log tasks to remove count.
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenGroot committed Sep 26, 2023
1 parent 9dbe4c6 commit 80a51f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/TaskServer/TaskRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public void CleanupJobTasks(Guid jobID)
var tasksToRemove = (from item in _runningTasks
where item.Value.JobId == jobID
select item.Key).ToArray();
_log.InfoFormat("Tasks to remove: {0}", tasksToRemove.Length);
foreach (var task in tasksToRemove)
{
if (_runningTasks[task].State == TaskAttemptStatus.Running)
Expand Down
2 changes: 1 addition & 1 deletion src/TaskServer/TaskServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ private void ShutdownInternal()

private void SendHeartbeat()
{
_log.Info("Sending heartbeat");
JetHeartbeatData[] data = null;
lock (_pendingHeartbeatData)
{
Expand All @@ -309,6 +308,7 @@ private void SendHeartbeat()
}

JetHeartbeatResponse[] responses = null;
_log.Info("Sending heartbeat");
RpcHelper.TryRemotingCall(() => responses = _jobServer.Heartbeat(LocalAddress, data), _heartbeatInterval, -1);

if (responses != null)
Expand Down

0 comments on commit 80a51f1

Please sign in to comment.