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

Do not send queries after we would fail WFT #792

Closed Sushisource closed 1 month ago

Sushisource commented 1 month ago

What was changed

Do not send queries if the task would be failed anyway

Why?

Pointless waste of time and effort, and can potentially un-fail the WFT if a legacy query is successfully responded to.

Checklist

  1. Closes https://github.com/temporalio/sdk-core/issues/786

  2. How was this tested: Added test

  3. Any docs updates needed?