Closed HiDoYa closed 6 months ago
Despite the fact a lock file is in use here (likely an artifact from much older code), ansible-runner
is not designed to be used in parallel against the same private_data_dir
, which I suspect you are doing but you have not given enough information to say that for certain.
I see, thanks. We do have parallel ansible-runner's against the same private_data_dir.
When running a bunch of ansible-runners in parallel in many subprocesses, once in a while (2 out of 10 times I've tested) I get this exception from several of the ansible-runners:
I think there may be a race in this code under src/ansible_runner/utils/init.py to delete the lock file after unlocking which is used when ansible-runner is dumping the inventory object to file.