diff --git a/src/Runner.Listener/JobDispatcher.cs b/src/Runner.Listener/JobDispatcher.cs index 894f63d56..9dbf7ddcc 100644 --- a/src/Runner.Listener/JobDispatcher.cs +++ b/src/Runner.Listener/JobDispatcher.cs @@ -1077,23 +1077,7 @@ namespace GitHub.Runner.Listener if (this._isRunServiceJob) { - var runServer = await GetRunServerAsync(systemConnection); - var unhandledExceptionIssue = new Issue() { Type = IssueType.Error, Message = detailInfo }; - var unhandledAnnotation = unhandledExceptionIssue.ToAnnotation(); - var jobAnnotations = new List(); - if (unhandledAnnotation.HasValue) - { - jobAnnotations.Add(unhandledAnnotation.Value); - } - try - { - await runServer.CompleteJobAsync(message.Plan.PlanId, message.JobId, result, outputs: null, stepResults: null, jobAnnotations: jobAnnotations, CancellationToken.None); - } - catch (Exception ex) - { - Trace.Error("Fail to raise job completion back to service."); - Trace.Error(ex); - } + Trace.Verbose($"Skip CompleteJobRequestAsync call from Listener because it's RunService job"); return; }