You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Horde: Improve diagnostic output from compute command.
#preflight none [CL 18791170 by Ben Marsh in ue5-main branch]
This commit is contained in:
@@ -248,6 +248,10 @@ namespace HordeAgent.Commands
|
||||
}
|
||||
if (Response.State == ComputeTaskState.Complete)
|
||||
{
|
||||
if (Response.Outcome != ComputeTaskOutcome.Success)
|
||||
{
|
||||
Logger.LogError("{OperationName}: Outcome: {Outcome}, Detail: {Detail}", Response.TaskRefId, Response.Outcome.ToString(), Response.Detail ?? "(none)");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,6 +240,7 @@ namespace HordeServer.Compute.Impl
|
||||
|
||||
ComputeTaskStatus Status = new ComputeTaskStatus(ComputeTask.TaskRefId, ComputeTaskState.Complete, null, null);
|
||||
Status.Outcome = ComputeTaskOutcome.Expired;
|
||||
Status.Outcome = $"No agents monitoring queue {QueueKey}";
|
||||
Logger.LogInformation("Compute task expired (queue: {RequirementsHash}, task: {TaskHash}, channel: {ChannelId})", QueueKey, ComputeTask.TaskRefId, ComputeTask.ChannelId);
|
||||
await PostStatusMessageAsync(ComputeTask, Status);
|
||||
}
|
||||
@@ -480,7 +481,8 @@ namespace HordeServer.Compute.Impl
|
||||
|
||||
ComputeTaskStatus Status = new ComputeTaskStatus(ComputeTask.TaskRefId, ComputeTaskState.Complete, null, null);
|
||||
Status.Outcome = ComputeTaskOutcome.BlobNotFound;
|
||||
Logger.LogInformation("Compute task failed due to missing requirements (queue: {RequirementsHash}, task: {TaskHash}, channel: {ChannelId})", QueueKey, ComputeTask.TaskRefId, ComputeTask.ChannelId);
|
||||
Status.Detail = $"Missing requirements object {QueueKey.RequirementsHash}";
|
||||
Logger.LogInformation("Compute task failed due to missing requirements (queue: {QueueKey}, task: {TaskHash}, channel: {ChannelId})", QueueKey, ComputeTask.TaskRefId, ComputeTask.ChannelId);
|
||||
await PostStatusMessageAsync(ComputeTask, Status);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user