From 79104b6382bee46573f0515b2ac06aeeadf9f0f3 Mon Sep 17 00:00:00 2001 From: Chad Retz Date: Thu, 1 Feb 2024 13:58:20 -0600 Subject: [PATCH] Prefix some errors with rule identifiers (#180) --- src/Temporalio/Worker/WorkflowWorker.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Temporalio/Worker/WorkflowWorker.cs b/src/Temporalio/Worker/WorkflowWorker.cs index adda4512..f01f2937 100644 --- a/src/Temporalio/Worker/WorkflowWorker.cs +++ b/src/Temporalio/Worker/WorkflowWorker.cs @@ -138,7 +138,7 @@ private async Task HandleActivationAsync(IPayloadCodec? codec, WorkflowActivatio // deadlocked and just rethrow the same exception as before if (deadlockedWorkflows.ContainsKey(act.RunId)) { - throw new InvalidOperationException($"Workflow with ID {act.RunId} deadlocked after {deadlockTimeout}"); + throw new InvalidOperationException($"[TMPRL1101] Workflow with ID {act.RunId} deadlocked after {deadlockTimeout}"); } // If the workflow is not yet running, create it. We know that we will only get @@ -167,7 +167,7 @@ private async Task HandleActivationAsync(IPayloadCodec? codec, WorkflowActivatio // next activation which will be a remove job. deadlockedWorkflows[act.RunId] = workflowTask; throw new InvalidOperationException( - $"Workflow with ID {act.RunId} deadlocked after {deadlockTimeout}"); + $"[TMPRL1101] Workflow with ID {act.RunId} deadlocked after {deadlockTimeout}"); } // Cancel deadlock timeout timer since we didn't hit it timeoutCancel.Cancel();