when i invoke querymethod, it Occasionally throw below error
and then workflow failed
The error indicates that your code is non-deterministic, have you changed your workflow code?
Please see:
Querymethod doesnât change the workflow code
We use DAG to define our workflow, branches execute concurrency. Maybe It affect the code deterministic. How can I control the DAG execute sequence to avoid that problem?
I donât think that the error is related to the fact that you use DAG to define your workflows.
I think that the problem is that your workflow code/DAG has changed and there is a Workflow Execution open with the previous version of the code. Might it be the case?
Hi @antonio.perez
Iâm sure the workflow only has one version. When I donât invoke querymethodďźthe workflow success finished. As soon as I invoke querymethod multi timesďźThe workflow failed. The query methods doesnât have any logic, just return variablies.
Besidesďźeven if the workflow success complete, when I open the query tab on the web page, Itâs display âNo queries registeredâ. But other type workflows still can invoke query method
I am gonna try to reproduce it.
Can I ask the SDK version and server version tctl admin cl d | jq '.serverVersion'
that you are using?
even if the workflow success complete, when I open the query tab on the web page, Itâs display âNo queries registeredâ
In web ui (v1 or v2) queries are only available while the workflow execution is running. We opened issue here so this feature gets added in future releases.
we are using temporal 1.16.1 and java sdk 1.9.1
Hi @xust_software I am not been able to reproduce your issue.
Can you ensure your code is deterministic? Could you check these constraints please Application development foundations | Temporal Documentation?