I get the aforementioned error when trying to start a workflow (and query it for init). It took me a while to get into names of things - after reading this it is more clear what decision task really is, however I think I am still a bit lost in terminology. So I believe in my case decision task takes longer than 1 sec (queryFirstDecisionTaskWaitTime). Is this wait time in any way configurable? Has anyone experienced similar issue?
"QueryFailedError{Message: workflow must handle at least one decision task before it can be queried}" when trying to run a workflow
276 views Asked by Vardan Saakian At
2
Yes, you should be able to "configure" the
queryFirstDecisionTaskWaitTime
by setting request timeout.For example, in golang that's just the context timeout when sending the query requests to Cadence server.
Tested in CLI:
Note: --ct 10 means we uses 10 seconds as context timeout for this command.
As a minimum, defaultQueryFirstDecisionTaskWaitTime is one second. Currently there is no way to change this minimum boundary. And I don't think we need that as you can configure per each request :D
BTW, thank you for asking questions in StackOverfolw, that helps us to preserve knowledge for the community better.