temporalio / sdk-core

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

[Feature Request] Ability for certain task failure types to fail workflow #656

Closed cretz closed 6 months ago

cretz commented 9 months ago

Describe the solution you'd like

From https://github.com/temporalio/features/issues/322, need:

Sushisource commented 9 months ago

I don't think this is the right way to do this in Core. Core doesn't need to try to understand the types of exceptions thrown from lang. Lang can just set an explicit field on the response that says "this should fail the workflow".

cretz commented 9 months ago

Core doesn't need to try to understand the types of exceptions thrown from lang. Lang can just set an explicit field on the response that says "this should fail the workflow".

Completely agree. This is only very specifically for the one task failure type that core does understand - nondeterminism. People want to be able to say "core-based nondeterminism fails workflow". I just figured requesting a collection is more future proof, but it's only for this one case. But all the other cases of task failure lang for sure should handle.