ANVIL_PORT_LOCK_FILE_PREFIX
Documentation for eth_defi.provider.anvil.ANVIL_PORT_LOCK_FILE_PREFIX data.
- ANVIL_PORT_LOCK_FILE_PREFIX = 'web3-ethereum-defi-anvil-port'
Prefix for the per-port advisory lock files shared by pytest-xdist workers.
The files themselves are not reservations.
fcntl.flock()associates the reservation with an open file descriptor and the operating system releases it automatically if a worker crashes. Lock files are deliberately retained: unlinking a live lock file could let another worker create a new inode for the same port and acquire an independent lock.