From ceea81a8b00bfd8de8bf405c8357490ebc2d4595 Mon Sep 17 00:00:00 2001 From: lemaitre-aneo Date: Mon, 15 Apr 2024 16:14:46 +0200 Subject: [PATCH] Abort log --- .../csharp/ArmoniK.Api.Worker/Worker/WorkerStreamWrapper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/csharp/ArmoniK.Api.Worker/Worker/WorkerStreamWrapper.cs b/packages/csharp/ArmoniK.Api.Worker/Worker/WorkerStreamWrapper.cs index f3d9f37e3..b5b49a4df 100644 --- a/packages/csharp/ArmoniK.Api.Worker/Worker/WorkerStreamWrapper.cs +++ b/packages/csharp/ArmoniK.Api.Worker/Worker/WorkerStreamWrapper.cs @@ -129,6 +129,8 @@ public sealed override async Task Process(ProcessRequest reques } else { + logger_.LogInformation("RPC request was aborted"); + // Request has been cancelled // Wait for process to be properly cancelled, or small delay task = await Task.WhenAny(process, @@ -143,6 +145,8 @@ public sealed override async Task Process(ProcessRequest reques } else { + logger_.LogError("Stopping the worker as processing has not stopped"); + // Task did not finish upon cancellation // Abort the whole worker to ensure the task does not continue running Environment.Exit(AbortReturnCode);