ANVIL_GRACEFUL_SHUTDOWN_TIMEOUT
Documentation for eth_defi.provider.anvil.ANVIL_GRACEFUL_SHUTDOWN_TIMEOUT data.
- ANVIL_GRACEFUL_SHUTDOWN_TIMEOUT: float = 5.0
Seconds to wait for Anvil to exit cleanly (
SIGTERM) beforeSIGKILLonAnvilLaunch.close(). Anvil flushes its fork RPC cache (~/.foundry/cache/rpc/<network>/<block>/storage.json) only on a graceful shutdown; a straightSIGKILLdiscards it, so without this the on-disk fork cache never accumulates and CI keeps cold-fetching (and getting throttled). The flush of a single block is fast; the bounded wait plus SIGKILL fallback keeps teardown from hanging.