# Temporal Schedule: Unable to query workflow due to Workflow Task in failed state

**URL:** <https://community.temporal.io/t/temporal-schedule-unable-to-query-workflow-due-to-workflow-task-in-failed-state/12921>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [July 23, 2024, 4:02am UTC](https://community.temporal.io/t/temporal-schedule-unable-to-query-workflow-due-to-workflow-task-in-failed-state/12921 "2024-07-23T04:02:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jxwang](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jxwang/32/4270_2.png) [@jxwang](https://community.temporal.io/u/jxwang)\
**Post date:** [July 23, 2024, 4:02am UTC](https://community.temporal.io/t/temporal-schedule-unable-to-query-workflow-due-to-workflow-task-in-failed-state/12921/1 "2024-07-23T04:02:06Z")

</div>

Hi Temporal team,  
We recently encountered this issue for temporal schedule: Unable to query workflow due to  
Workflow Task in failed state. This error is also stopping us if we want to deploy a new pod for that schedule workflow. Do you have any idea why it was generated and how should we fix it?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/b/bd7cd784d18cfde34d521422b9af12d472d299f8.png)

Best regards,  
Jx

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [July 25, 2024, 1:57pm UTC](https://community.temporal.io/t/temporal-schedule-unable-to-query-workflow-due-to-workflow-task-in-failed-state/12921/2 "2024-07-25T13:57:22Z")

</div>

Hi @jxwang

> [@jxwang](#):
>
> We recently encountered this issue for temporal schedule: Unable to query workflow due to  
> Workflow Task in failed state

I don’t think this should happen, could you provide a way to reproduce this?

Antonio

---

<div class="post-metadata">

**Author:** ![jxwang](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jxwang/32/4270_2.png) [@jxwang](https://community.temporal.io/u/jxwang)\
**Post date:** [July 26, 2024, 3:55am UTC](https://community.temporal.io/t/temporal-schedule-unable-to-query-workflow-due-to-workflow-task-in-failed-state/12921/3 "2024-07-26T03:55:55Z")

</div>

Hi @Antonio,

What we have done we have each activity and workflow deployed as microservice. As the development goes on, we have constantly develop new changes for both activity and workflows and deploy for new versions. But for schedule workflow no breaking or non-deterministic changes. We did not not make any deployment for Cassandra or temporal server neither. After we delete the schedule and recreate, the issue is gone now. We are trying to figure out what scenarios, this issue or behavior might come?

Best regards,  
Jx

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [July 26, 2024, 2:16pm UTC](https://community.temporal.io/t/temporal-schedule-unable-to-query-workflow-due-to-workflow-task-in-failed-state/12921/4 "2024-07-26T14:16:36Z")

</div>

Thanks @jxwang

let us know if this happen again, it would be great to have a reproduction so we can create an issue to the temporal repository

Thank you

---

<div class="post-metadata">

**Author:** ![jxwang](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jxwang/32/4270_2.png) [@jxwang](https://community.temporal.io/u/jxwang)\
**Post date:** [September 27, 2024, 6:21am UTC](https://community.temporal.io/t/temporal-schedule-unable-to-query-workflow-due-to-workflow-task-in-failed-state/12921/5 "2024-09-27T06:21:44Z")

</div>

This happened when one of the temporal Cassandra pod crashed and data corrupted. Now the issue is we cant delete the schedule using cli

---

<div class="post-metadata">

**Author:** ![TonyVonCloud](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@TonyVonCloud](https://community.temporal.io/u/TonyVonCloud)\
**Post date:** [March 24, 2025, 2:22pm UTC](https://community.temporal.io/t/temporal-schedule-unable-to-query-workflow-due-to-workflow-task-in-failed-state/12921/6 "2025-03-24T14:22:59Z")

</div>

@antonio.perez This also happened with my cluster, and we had a Cassandra outage last week. So it’s probably from corrupt data.
