Agents are stuck in Reserved state for ring-all strategy if their leg is initiated around the same time when another agent answers.
I have raised a bug and provided a pull request to fix the same.
Describe the bug
Some agents are stuck in Reserved state.
To Reproduce
We noticed this when there are many agents ( more than 10 ) assigned to a ring-all queue.
The agent is mapped in the members table for ring-all and ring-progressively in a different place in the code.
If an agent is reserved but another agent is already mapped to the member by the time the select query executes, guess it will not find the row. Please confirm this or are we missing something regarding Reserve agents
Expected behavior
Reserved agents to be released(reset to Waiting ?)