Files
Prathyush PVandGitHub c19ce9164f Fail queries if workflow is terminated without WorkflowTaskStarted event (#4867)
<!-- Describe what has changed in this PR -->
**What changed?**
Added condition to fail query if workflow has terminated and it did not
have WorkflowTaskStarted event.

<!-- Tell your future self why have you made these changes -->
**Why?**
If the workflow never had WorkflowTaskStarted event, query will
eventually fail without a clear error.
Adding a clear error message in this case.

<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
**How did you test it?**
Unit tests.

<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
**Potential risks**
None

<!-- Is this PR a hotfix candidate or require that a notification be
sent to the broader community? (Yes/No) -->
**Is hotfix candidate?**
No
2023-10-03 14:27:49 -07:00
..