Workflows get marked Completed while tasks are still remaing
We've encountered very weird issue with conductor. Some workflows were marked as "Completed" while their tasks were still "Scheduled". Therefore, those tasks were marked as "Canceled" by the Conductor background systemTask worker.
This happened for HTTP tasks in particular. Looking into the logs of the server, we saw the following warnings:
Workflow WF_ID has been completed for HTTP/TASK_ID
Looking at the code from which this warning come from, it came from here.
Could you please tell me what could be causing this problem?
We're running conductor server v2.9.1 with Redis.
Can that be related by anyway to the concurrency problem mentioned in this issue?
Hey @mohelsaka, thanks for reporting this. Can you please provide workflow execution json and relevant logs.
Hey @kishorebanala, please, check these links out.
We run Conductor 2.9.1 on 2 servers using a shared Redis and Elasticsearch setup.

Hi @kishorebanala, Can we please get help with that? It happened multiple times on our production setup and we failed to find the root cause.
Hey @mohelsaka, apologies for delays. From the logs, I believe it's a concurrency issue. But that's only a part of the problem. One of the concurrent decides have passed checkForWorkflowCompletion, and we cannot reason why. Because this method can be tested in isolation, we'll try to add unit tests with different workflow executions.
On the other side, we're working on a locking solution, which should prevent concurrent decides.