temporalio / sdk-core

Core Temporal SDK that can be used as a base for language specific Temporal SDKs
MIT License
278 stars 77 forks source link

[Feature Request] Add workflow task failure policy worker option #571

Open cretz opened 1 year ago

cretz commented 1 year ago

Describe the solution you'd like

Go has a worker.Options.WorkflowPanicPolicy which defaults to BlockWorkflow but you can set it to FailWorkflow. Not sure we need that exact terminology, but we should have a worker option that automatically promotes an activation completion failure to a workflow failure.

I would say lang could do this themselves, but this should probably also include core-level task failures such as non-determinism failures.