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

Do not warn on unfinished handlers if workflow failed #1581

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

Quinn-With-Two-Ns
Copy link
Contributor

Do not warn on unfinished handlers if workflow failed

closes #1580

@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner August 6, 2024 21:11
Comment on lines +700 to 704
// Verify that the workflow did not fail. If it did we will not warn about unhandled updates.
var canceledErr *CanceledError
var contErr *ContinueAsNewError
if len(updatesToWarn) > 0 && (rp.error == nil || errors.As(rp.error, &canceledErr) || errors.As(rp.error, &contErr)) {
env.GetLogger().Warn(unhandledUpdateWarningMessage, "Updates", updatesToWarn)
Copy link
Member

Choose a reason for hiding this comment

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

You know we never discussed this but perhaps it makes sense to log them at debug level for workflow failing case?

Not a big deal either way.

Copy link
Contributor Author

@Quinn-With-Two-Ns Quinn-With-Two-Ns Aug 6, 2024

Choose a reason for hiding this comment

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

Hmm I think I would punt on this for now. I suspect we will be doing more work on warning on dangling "things" (like activities) in workflow and can resist then

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit c2ce2e6 into temporalio:master Aug 6, 2024
14 checks passed
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.

Do not warn on unfinished handlers if the workflow has failed
3 participants