Skip to content

History iteration should never ever fail a workflow execution#1404

Merged
Spikhalskiy merged 1 commit intotemporalio:masterfrom
Spikhalskiy:issue-1242
Sep 2, 2022
Merged

History iteration should never ever fail a workflow execution#1404
Spikhalskiy merged 1 commit intotemporalio:masterfrom
Spikhalskiy:issue-1242

Conversation

@Spikhalskiy
Copy link
Copy Markdown
Contributor

What was changed

After this change, workflow history iteration exceptions never fail workflow executions.
Even if Throwable is set on the failWorkflowExceptionTypes.

Why

It's likely never an intention or expectation of the user that a workflow will start to fail on such internal machinery as workflow iterations and because of a temporary unavailable or a slow server. Also, workflow iteration exceptions are not like the state machine's NonDeterministicException, they are always retryable and recoverable. So it seems like failing a workflow execution on history iteration failures because of connectivity issues is always a bad idea. Instead, a Workflow Task should be failed.

@Spikhalskiy Spikhalskiy added the bug Something isn't working label Sep 1, 2022
@Spikhalskiy Spikhalskiy added this to the 1.17.0 milestone Sep 1, 2022
Copy link
Copy Markdown
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

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

Nice fix

Even if `Throwable` is set on the failWorkflowExceptionTypes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants