[Bug] [API] Failed when querying based on workflow status
Search before asking
- [x] I had searched in the issues and found no similar issues.
What happened
When I query a workflow based on its state the query fails, I figure out it's a missing enum value in the code.

What you expected to happen
xx
How to reproduce
When the workflow filter type is kill, waiting for thread, waiting for dependency, delay execution, etc., the query will fail
Anything else
No response
Version
3.1.x
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
When I query a workflow based on its state the query fails, I figure out it's a missing enum value in the code.

What you expected to happen
xx
How to reproduce
When the workflow filter type is kill, waiting for thread, waiting for dependency, delay execution, etc., the query will fail
Anything else
No response
Version
3.1.x
Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
- In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
- If you haven't received a reply for a long time, you can join our slack and send your question to channel
#troubleshooting
I see you are willing to submit a PR, so I assign you. Thanks for fixing the bug. Look forward to your code
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
- In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
- If you haven't received a reply for a long time, you can join our slack and send your question to channel
#troubleshooting
Please assign this problem to others, as my ability is limited and I cannot solve it.
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
- In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
- If you haven't received a reply for a long time, you can join our slack and send your question to channel
#troubleshootingPlease assign this problem to others, as my ability is limited and I cannot solve it.
All right. I'll fix this issue.