Skip to content

Commit

Permalink
Prefix some errors with rule identifiers (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
cretz authored Feb 1, 2024
1 parent ba4763b commit 79104b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Temporalio/Worker/WorkflowWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 79104b6

Please sign in to comment.