Release lock when ansible operator pod is deleted #2242
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
language/ansible
Issue is related to an Ansible operator project
Feature Request
Is your feature request related to a problem? Please describe.
When I delete a pod from my ansible operator, the new pod comes up and finds a lock in place by the old pod. It seems to wait for an expiration timer or perhaps detects the other is gone before it then picks up and moves on with its tasks. This causes a small delay in processing.
Describe the solution you'd like
When a pod is deleted, it would be nice if part of it going down included releasing the lock. This would reduce the time where the responsibility of the operator is not performed during the transition. It could simply look for the lock and find none so it can grab it and go.
Here are the logs that show me how this is happening. At the time this is logged, pod
my-operator-6bb9c45f77-wd2sb
is already in a Terminated state.The text was updated successfully, but these errors were encountered: