Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix some errors with rule identifiers #180

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

cretz
Copy link
Member

@cretz cretz commented Jan 22, 2024

What was changed

Add a couple of https://github.com/temporalio/rules references as error prefixes

@cretz cretz marked this pull request as ready for review February 1, 2024 15:48
@cretz cretz requested a review from a team February 1, 2024 15:48
@@ -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}");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe re-use this format string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh, just a couple of places for the string literal, I don't think it's worth extracting

@cretz cretz merged commit 79104b6 into temporalio:main Feb 1, 2024
7 checks passed
@cretz cretz deleted the temporal-rules branch February 1, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants