I would like to serialize the execution of a workflow.
I have done by using a specific queue with maximum slots set to 1.
The problem is that if one workflow fails during its execution it blocks (I need it like this because I want to be able to keep the state and restart the failed task), the queue has just one slot available which is used by the blocked workflow. It would be nice to have the queue ignore the blocked workflow, given it is blocked and start the workflow waiting for a queue slot.
Is there a way to achieve this?