That is designed to solve the problem you have. However, maybe it is missing something?
To avoid the execution deletion errors, I think you may want to only delete root workflow executions (and not sub-workflows, they are deleted when the root is deleted).
Do you use the execution expiration policy? https:/ /docs.openstack .org/mistral/ latest/ main_features. html#execution- expiration- policy
That is designed to solve the problem you have. However, maybe it is missing something?
To avoid the execution deletion errors, I think you may want to only delete root workflow executions (and not sub-workflows, they are deleted when the root is deleted).